Skip to content

Commit 9a024f5

Browse files
authored
Fixed issue where layout mode options would be disabled (#4389)
1 parent 8fe432f commit 9a024f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Files/Helpers/ContextFlyoutItemHelper.cs

+6
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseLayoutMenuItems(Curren
101101
Glyph = "\uE739",
102102
ShowInRecycleBin = true,
103103
Command = currentInstanceViewModel.FolderSettings.ToggleLayoutModeGridViewLarge,
104+
CommandParameter = true,
104105
},
105106
// Grid view medium
106107
new ContextMenuFlyoutItemViewModel()
@@ -109,6 +110,7 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseLayoutMenuItems(Curren
109110
Glyph = "\uF0E2",
110111
ShowInRecycleBin = true,
111112
Command = currentInstanceViewModel.FolderSettings.ToggleLayoutModeGridViewMedium,
113+
CommandParameter = true,
112114
},
113115
// Grid view small
114116
new ContextMenuFlyoutItemViewModel()
@@ -117,6 +119,7 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseLayoutMenuItems(Curren
117119
Glyph = "\uE80A",
118120
ShowInRecycleBin = true,
119121
Command = currentInstanceViewModel.FolderSettings.ToggleLayoutModeGridViewSmall,
122+
CommandParameter = true,
120123
},
121124
// Tiles view
122125
new ContextMenuFlyoutItemViewModel()
@@ -125,6 +128,7 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseLayoutMenuItems(Curren
125128
Glyph = "\uE15C",
126129
ShowInRecycleBin = true,
127130
Command = currentInstanceViewModel.FolderSettings.ToggleLayoutModeTiles,
131+
CommandParameter = true,
128132
},
129133
// Details view
130134
new ContextMenuFlyoutItemViewModel()
@@ -133,6 +137,7 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseLayoutMenuItems(Curren
133137
Glyph = "\uE179",
134138
ShowInRecycleBin = true,
135139
Command = currentInstanceViewModel.FolderSettings.ToggleLayoutModeDetailsView,
140+
CommandParameter = true,
136141
},
137142
// Column view
138143
new ContextMenuFlyoutItemViewModel()
@@ -141,6 +146,7 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseLayoutMenuItems(Curren
141146
Glyph = "\uE8C0",
142147
ShowInRecycleBin = true,
143148
Command = currentInstanceViewModel.FolderSettings.ToggleLayoutModeColumnView,
149+
CommandParameter = true,
144150
},
145151
}
146152
},

0 commit comments

Comments
 (0)