File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 53
53
x:Name=" PaneLeft"
54
54
ContentChanged=" Pane_ContentChanged"
55
55
IsPageMainPane=" True"
56
- Loaded=" PaneLeft_Loaded "
56
+ Loaded=" Pane_Loaded "
57
57
NavParams=" {x:Bind NavParamsLeft, Mode=OneWay}"
58
58
PaneHolder=" {x:Bind}" />
59
59
65
65
x:Name=" PaneRight"
66
66
ContentChanged=" Pane_ContentChanged"
67
67
IsPageMainPane=" False"
68
- Loaded=" PaneRight_Loaded "
68
+ Loaded=" Pane_Loaded "
69
69
NavParams=" {x:Bind NavParamsRight, Mode=OneWay}"
70
70
PaneHolder=" {x:Bind}" />
71
71
</Border >
Original file line number Diff line number Diff line change @@ -330,19 +330,20 @@ public void CloseActivePane()
330
330
IsRightPaneVisible = false ;
331
331
}
332
332
333
- private void PaneLeft_Loaded ( object sender , RoutedEventArgs e )
333
+ private void Pane_Loaded ( object sender , RoutedEventArgs e )
334
334
{
335
- ( sender as UIElement ) . GotFocus += Pane_GotFocus ;
336
- }
337
-
338
- private void PaneRight_Loaded ( object sender , RoutedEventArgs e )
339
- {
340
- ( sender as UIElement ) . GotFocus += Pane_GotFocus ;
335
+ ( ( UIElement ) sender ) . GotFocus += Pane_GotFocus ;
341
336
}
342
337
343
338
private void Pane_GotFocus ( object sender , RoutedEventArgs e )
344
339
{
345
- ActivePane = sender == PaneLeft ? PaneLeft : PaneRight ;
340
+ var isLeftPane = sender == PaneLeft ;
341
+ if ( isLeftPane && ( PaneRight ? . SlimContentPage ? . IsItemSelected ?? false ) )
342
+ PaneRight . SlimContentPage . ItemManipulationModel . ClearSelection ( ) ;
343
+ else if ( ! isLeftPane && ( PaneLeft ? . SlimContentPage ? . IsItemSelected ?? false ) )
344
+ PaneLeft . SlimContentPage . ItemManipulationModel . ClearSelection ( ) ;
345
+
346
+ ActivePane = isLeftPane ? PaneLeft : PaneRight ;
346
347
}
347
348
348
349
public void Dispose ( )
You can’t perform that action at this time.
0 commit comments