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)
102
102
public override void Dispose ( )
103
103
{
104
104
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 ( ) ) ;
109
109
UnhookEvents ( ) ;
110
110
CommandsViewModel ? . Dispose ( ) ;
111
111
}
You can’t perform that action at this time.
0 commit comments