mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
Remove unneeded closing check
Turns out the check has not been needed since 2016.
This commit is contained in:
parent
c9b13ee57e
commit
ac66736294
1 changed files with 2 additions and 5 deletions
|
@ -225,11 +225,8 @@ namespace CalculatorApp
|
||||||
string memoryPaneName = AppResourceProvider.GetInstance().GetResourceString("MemoryPane");
|
string memoryPaneName = AppResourceProvider.GetInstance().GetResourceString("MemoryPane");
|
||||||
MemoryFlyout.FlyoutPresenterStyle.Setters.Add(new Setter(AutomationProperties.NameProperty, memoryPaneName));
|
MemoryFlyout.FlyoutPresenterStyle.Setters.Add(new Setter(AutomationProperties.NameProperty, memoryPaneName));
|
||||||
|
|
||||||
if (Windows.Foundation.Metadata.ApiInformation.IsEventPresent("Windows.UI.Xaml.Controls.Primitives.FlyoutBase", nameof(FlyoutBase.Closing)))
|
|
||||||
{
|
|
||||||
HistoryFlyout.Closing += HistoryFlyout_Closing;
|
HistoryFlyout.Closing += HistoryFlyout_Closing;
|
||||||
MemoryFlyout.Closing += OnMemoryFlyoutClosing;
|
MemoryFlyout.Closing += OnMemoryFlyoutClosing;
|
||||||
}
|
|
||||||
|
|
||||||
// Delay load things later when we get a chance.
|
// Delay load things later when we get a chance.
|
||||||
WeakReference weakThis = new WeakReference(this);
|
WeakReference weakThis = new WeakReference(this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue