@@ -225,12 +225,6 @@ private void OnLoaded(object sender, RoutedEventArgs e)
225225 string memoryPaneName = AppResourceProvider . GetInstance ( ) . GetResourceString ( "MemoryPane" ) ;
226226 MemoryFlyout . FlyoutPresenterStyle . Setters . Add ( new Setter ( AutomationProperties . NameProperty , memoryPaneName ) ) ;
227227
228- if ( Windows . Foundation . Metadata . ApiInformation . IsEventPresent ( "Windows.UI.Xaml.Controls.Primitives.FlyoutBase" , "Closing" ) )
229- {
230- HistoryFlyout . Closing += HistoryFlyout_Closing ;
231- MemoryFlyout . Closing += OnMemoryFlyoutClosing ;
232- }
233-
234228 // Delay load things later when we get a chance.
235229 WeakReference weakThis = new WeakReference ( this ) ;
236230 _ = this . Dispatcher . RunAsync (
@@ -650,9 +644,6 @@ private void HistoryFlyout_Closing(FlyoutBase sender, FlyoutBaseClosingEventArgs
650644
651645 private void HistoryFlyout_Closed ( object sender , object args )
652646 {
653- // Ideally, this would be renamed in the Closing event because the Closed event is too late.
654- // Closing is not available until RS1+ so we set the name again here for TH2 support.
655- AutomationProperties . SetName ( HistoryButton , m_openHistoryFlyoutAutomationName ) ;
656647 m_fIsHistoryFlyoutOpen = false ;
657648 EnableControls ( true ) ;
658649 if ( HistoryButton . IsEnabled && HistoryButton . Visibility == Visibility . Visible )
@@ -745,9 +736,6 @@ private void OnMemoryFlyoutClosing(FlyoutBase sender, FlyoutBaseClosingEventArgs
745736
746737 private void OnMemoryFlyoutClosed ( object sender , object args )
747738 {
748- // Ideally, this would be renamed in the Closing event because the Closed event is too late.
749- // Closing is not available until RS1+ so we set the name again here for TH2 support.
750- AutomationProperties . SetName ( MemoryButton , m_openMemoryFlyoutAutomationName ) ;
751739 m_fIsMemoryFlyoutOpen = false ;
752740 EnableControls ( true ) ;
753741 if ( MemoryButton . IsEnabled )
0 commit comments