@@ -155,7 +155,10 @@ public override List<ContextMenuFlyoutItemViewModel> GetItemMenuItems(WidgetCard
155
155
new ContextMenuFlyoutItemViewModel ( )
156
156
{
157
157
Text = "OpenWith" . GetLocalizedResource ( ) ,
158
- OpacityIcon = new ( "ColorIconOpenWith" ) ,
158
+ OpacityIcon = new OpacityIconModel ( )
159
+ {
160
+ OpacityIconStyle = "ColorIconOpenWith" ,
161
+ } ,
159
162
Tag = "OpenWithPlaceholder" ,
160
163
ShowItem = ! isFolder
161
164
} ,
@@ -168,15 +171,21 @@ public override List<ContextMenuFlyoutItemViewModel> GetItemMenuItems(WidgetCard
168
171
new ContextMenuFlyoutItemViewModel ( )
169
172
{
170
173
Text = "OpenInNewTab" . GetLocalizedResource ( ) ,
171
- OpacityIcon = new ( "ColorIconOpenInNewTab" ) ,
174
+ OpacityIcon = new OpacityIconModel ( )
175
+ {
176
+ OpacityIconStyle = "ColorIconOpenInNewTab" ,
177
+ } ,
172
178
Command = OpenInNewTabCommand ,
173
179
CommandParameter = item ,
174
180
ShowItem = isFolder
175
181
} ,
176
182
new ContextMenuFlyoutItemViewModel ( )
177
183
{
178
184
Text = "OpenInNewWindow" . GetLocalizedResource ( ) ,
179
- OpacityIcon = new ( "ColorIconOpenInNewWindow" ) ,
185
+ OpacityIcon = new OpacityIconModel ( )
186
+ {
187
+ OpacityIconStyle = "ColorIconOpenInNewWindow" ,
188
+ } ,
180
189
Command = OpenInNewWindowCommand ,
181
190
CommandParameter = item ,
182
191
ShowItem = isFolder
@@ -199,23 +208,32 @@ public override List<ContextMenuFlyoutItemViewModel> GetItemMenuItems(WidgetCard
199
208
new ContextMenuFlyoutItemViewModel ( )
200
209
{
201
210
Text = "PinToFavorites" . GetLocalizedResource ( ) ,
202
- OpacityIcon = new ( "ColorIconPinToFavorites" ) ,
211
+ OpacityIcon = new OpacityIconModel ( )
212
+ {
213
+ OpacityIconStyle = "ColorIconPinToFavorites" ,
214
+ } ,
203
215
Command = PinToFavoritesCommand ,
204
216
CommandParameter = item ,
205
217
ShowItem = ! isPinned && isFolder
206
218
} ,
207
219
new ContextMenuFlyoutItemViewModel ( )
208
220
{
209
221
Text = "UnpinFromFavorites" . GetLocalizedResource ( ) ,
210
- OpacityIcon = new ( "ColorIconUnpinFromFavorites" ) ,
222
+ OpacityIcon = new OpacityIconModel ( )
223
+ {
224
+ OpacityIconStyle = "ColorIconUnpinFromFavorites" ,
225
+ } ,
211
226
Command = UnpinFromFavoritesCommand ,
212
227
CommandParameter = item ,
213
228
ShowItem = isPinned && isFolder
214
229
} ,
215
230
new ContextMenuFlyoutItemViewModel ( )
216
231
{
217
232
Text = "Properties" . GetLocalizedResource ( ) ,
218
- OpacityIcon = new ( "ColorIconProperties" ) ,
233
+ OpacityIcon = new OpacityIconModel ( )
234
+ {
235
+ OpacityIconStyle = "ColorIconProperties" ,
236
+ } ,
219
237
Command = OpenPropertiesCommand ,
220
238
CommandParameter = item ,
221
239
ShowItem = isFolder
0 commit comments