File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Files/Views/LayoutModes Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,10 @@ protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
102102 public override void Dispose ( )
103103 {
104104 base . Dispose ( ) ;
105- ColumnHost . ActiveBlades . Select ( x => ( ( x . Content as Frame ) ? . Content as ColumnShellPage ) . SlimContentPage as ColumnViewBase ) . Where ( x => x != null ) . ForEach ( x => x . ItemInvoked -= ColumnViewBase_ItemInvoked ) ;
106- ColumnHost . ActiveBlades . ForEach ( x => ( ( x . Content as Frame ) ? . Content as ColumnShellPage ) . ContentChanged -= ColumnViewBrowser_ContentChanged ) ;
107- ColumnHost . ActiveBlades . ForEach ( x => ( ( x . Content as Frame ) ? . Content as UIElement ) . GotFocus -= ColumnViewBrowser_GotFocus ) ;
108- ColumnHost . ActiveBlades . Select ( x => ( x . Content as Frame ) ? . Content ) . OfType < IDisposable > ( ) . ForEach ( x => x . Dispose ( ) ) ;
105+ ColumnHost . Items . OfType < BladeItem > ( ) . Select ( x => ( ( x . Content as Frame ) ? . Content as ColumnShellPage ) . SlimContentPage as ColumnViewBase ) . Where ( x => x != null ) . ForEach ( x => x . ItemInvoked -= ColumnViewBase_ItemInvoked ) ;
106+ ColumnHost . Items . OfType < BladeItem > ( ) . ForEach ( x => ( ( x . Content as Frame ) ? . Content as ColumnShellPage ) . ContentChanged -= ColumnViewBrowser_ContentChanged ) ;
107+ ColumnHost . Items . OfType < BladeItem > ( ) . ForEach ( x => ( ( x . Content as Frame ) ? . Content as UIElement ) . GotFocus -= ColumnViewBrowser_GotFocus ) ;
108+ ColumnHost . Items . OfType < BladeItem > ( ) . Select ( x => ( x . Content as Frame ) ? . Content ) . OfType < IDisposable > ( ) . ForEach ( x => x . Dispose ( ) ) ;
109109 UnhookEvents ( ) ;
110110 CommandsViewModel ? . Dispose ( ) ;
111111 }
You can’t perform that action at this time.
0 commit comments