Remove unneeded closing check

Turns out the check has not been needed since 2016.
This commit is contained in:
Rose 2022-09-28 09:04:52 -04:00
commit ac66736294

View file

@ -225,11 +225,8 @@ namespace CalculatorApp
string memoryPaneName = AppResourceProvider.GetInstance().GetResourceString("MemoryPane");
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;
MemoryFlyout.Closing += OnMemoryFlyoutClosing;
}
// Delay load things later when we get a chance.
WeakReference weakThis = new WeakReference(this);