From ac66736294a591d7b8183a8ea721a3f252ca9b5b Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Wed, 28 Sep 2022 09:04:52 -0400 Subject: [PATCH] Remove unneeded closing check Turns out the check has not been needed since 2016. --- src/Calculator/Views/Calculator.xaml.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Calculator/Views/Calculator.xaml.cs b/src/Calculator/Views/Calculator.xaml.cs index 23b4077a..435a7a4b 100644 --- a/src/Calculator/Views/Calculator.xaml.cs +++ b/src/Calculator/Views/Calculator.xaml.cs @@ -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; - } + HistoryFlyout.Closing += HistoryFlyout_Closing; + MemoryFlyout.Closing += OnMemoryFlyoutClosing; // Delay load things later when we get a chance. WeakReference weakThis = new WeakReference(this);