File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -30,5 +30,7 @@ public interface IBaseLayout : IDisposable
30
30
public BaseLayoutCommandsViewModel ? CommandsViewModel { get ; }
31
31
32
32
public CommandBarFlyout ItemContextMenuFlyout { get ; set ; }
33
+
34
+ public CommandBarFlyout BaseContextMenuFlyout { get ; set ; }
33
35
}
34
36
}
Original file line number Diff line number Diff line change @@ -93,14 +93,22 @@ public virtual void OpenItem(RoutedEventArgs e)
93
93
public virtual void ShowProperties ( RoutedEventArgs e )
94
94
{
95
95
if ( SlimContentPage . ItemContextMenuFlyout . IsOpen )
96
- SlimContentPage . ItemContextMenuFlyout . Closed += OpenProperties ;
96
+ SlimContentPage . ItemContextMenuFlyout . Closed += OpenPropertiesFromItemContextMenuFlyout ;
97
+ else if ( SlimContentPage . BaseContextMenuFlyout . IsOpen )
98
+ SlimContentPage . BaseContextMenuFlyout . Closed += OpenPropertiesFromBaseContextMenuFlyout ;
97
99
else
98
100
FilePropertiesHelpers . ShowProperties ( associatedInstance ) ;
99
101
}
100
102
101
- private void OpenProperties ( object sender , object e )
103
+ private void OpenPropertiesFromItemContextMenuFlyout ( object sender , object e )
102
104
{
103
- SlimContentPage . ItemContextMenuFlyout . Closed -= OpenProperties ;
105
+ SlimContentPage . ItemContextMenuFlyout . Closed -= OpenPropertiesFromItemContextMenuFlyout ;
106
+ FilePropertiesHelpers . ShowProperties ( associatedInstance ) ;
107
+ }
108
+
109
+ private void OpenPropertiesFromBaseContextMenuFlyout ( object sender , object e )
110
+ {
111
+ SlimContentPage . BaseContextMenuFlyout . Closed -= OpenPropertiesFromBaseContextMenuFlyout ;
104
112
FilePropertiesHelpers . ShowProperties ( associatedInstance ) ;
105
113
}
106
114
You can’t perform that action at this time.
0 commit comments