|
93 | 93 | x:Name="NewEmptySpace" |
94 | 94 | Opening="NewEmptySpace_Opening" |
95 | 95 | Placement="BottomEdgeAlignedLeft"> |
96 | | - <MenuFlyoutItem |
97 | | - x:Name="ToolbarNewFolderItem" |
98 | | - AccessKey="D" |
99 | | - AutomationProperties.AutomationId="InnerNavigationToolbarNewFolderButton" |
100 | | - Command="{x:Bind Commands.CreateFolder, Mode=OneWay}" |
101 | | - KeyboardAcceleratorTextOverride="{x:Bind Commands.CreateFolder.HotKeyText, Mode=OneWay}" |
102 | | - Text="{x:Bind Commands.CreateFolder.Label}"> |
103 | | - <MenuFlyoutItem.Icon> |
104 | | - <FontIcon Foreground="{ThemeResource App.Theme.IconBaseBrush}" Glyph="" /> |
105 | | - </MenuFlyoutItem.Icon> |
106 | | - </MenuFlyoutItem> |
107 | | - <MenuFlyoutItem |
108 | | - x:Name="NewFile" |
109 | | - AccessKey="F" |
110 | | - AutomationProperties.AutomationId="File" |
111 | | - Command="{x:Bind ViewModel.CreateNewFileCommand, Mode=OneWay}" |
112 | | - CommandParameter="{x:Null}" |
113 | | - IsEnabled="{x:Bind ViewModel.InstanceViewModel.CanCreateFileInPage, Mode=OneWay}" |
114 | | - Text="{helpers:ResourceString Name=File}"> |
115 | | - <MenuFlyoutItem.Icon> |
116 | | - <FontIcon Foreground="{ThemeResource App.Theme.IconBaseBrush}" Glyph="" /> |
117 | | - </MenuFlyoutItem.Icon> |
118 | | - </MenuFlyoutItem> |
119 | | - <MenuFlyoutItem |
120 | | - x:Name="NewShortcut" |
121 | | - AccessKey="S" |
122 | | - AutomationProperties.AutomationId="InnerNavigationToolbarNewShortcutButton" |
123 | | - Command="{x:Bind Commands.CreateShortcutFromDialog, Mode=OneWay}" |
124 | | - KeyboardAcceleratorTextOverride="{x:Bind Commands.CreateShortcutFromDialog.HotKeyText, Mode=OneWay}" |
125 | | - Text="{x:Bind Commands.CreateShortcutFromDialog.Label}"> |
126 | | - <MenuFlyoutItem.Icon> |
127 | | - <FontIcon Foreground="{ThemeResource App.Theme.IconBaseBrush}" Glyph="" /> |
128 | | - </MenuFlyoutItem.Icon> |
129 | | - </MenuFlyoutItem> |
130 | 96 | <MenuFlyoutSeparator x:Name="NewMenuFileFolderSeparator" /> |
131 | 97 | </MenuFlyout> |
132 | 98 | </AppBarButton.Flyout> |
|
291 | 257 | AccessKey="Z" |
292 | 258 | AccessKeyInvoked="AppBarButton_AccessKeyInvoked" |
293 | 259 | IsEnabled="{x:Bind ViewModel.CanExtract, Mode=OneWay, FallbackValue=False}" |
294 | | - Label="{helpers:ResourceString Name=Extract}" |
| 260 | + Label="{x:Bind Commands.Groups.Extract.DisplayName}" |
295 | 261 | LabelPosition="Default" |
296 | 262 | Style="{StaticResource ToolBarAppBarButtonFlyoutStyle}" |
297 | 263 | Visibility="{x:Bind ViewModel.CanExtract, Mode=OneWay}"> |
298 | 264 |
|
299 | | - <controls:ThemedIcon Style="{StaticResource App.ThemedIcons.Zip}" /> |
| 265 | + <controls:ThemedIcon Style="{x:Bind Commands.Groups.Extract.ThemedIconStyle}" /> |
300 | 266 |
|
301 | 267 | <AppBarButton.Flyout> |
302 | | - <MenuFlyout helpers:MenuFlyoutHelper.IsVisible="{x:Bind ViewModel.CanExtract, Mode=OneWay}" Placement="Bottom"> |
303 | | - <MenuFlyoutItem |
304 | | - x:Name="ExtractSingle" |
305 | | - Command="{x:Bind Commands.DecompressArchive, Mode=OneWay}" |
306 | | - KeyboardAcceleratorTextOverride="{x:Bind Commands.DecompressArchive.HotKeyText, Mode=OneWay}" |
307 | | - Text="{x:Bind Commands.DecompressArchive.Label}" |
308 | | - Visibility="{x:Bind Commands.DecompressArchive.IsExecutable, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" /> |
309 | | - <MenuFlyoutItem |
310 | | - x:Name="ExtractHereSmart" |
311 | | - Command="{x:Bind Commands.DecompressArchiveHereSmart, Mode=OneWay}" |
312 | | - KeyboardAcceleratorTextOverride="{x:Bind Commands.DecompressArchiveHereSmart.HotKeyText, Mode=OneWay}" |
313 | | - Text="{x:Bind Commands.DecompressArchiveHereSmart.Label}" |
314 | | - Visibility="{x:Bind Commands.DecompressArchiveHereSmart.IsExecutable, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" /> |
315 | | - <MenuFlyoutItem |
316 | | - x:Name="ExtractHere" |
317 | | - Command="{x:Bind Commands.DecompressArchiveHere, Mode=OneWay}" |
318 | | - Text="{x:Bind Commands.DecompressArchiveHere.Label}" |
319 | | - Visibility="{x:Bind Commands.DecompressArchiveHere.IsExecutable, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" /> |
320 | | - <MenuFlyoutItem |
321 | | - x:Name="ExtractTo" |
322 | | - Command="{x:Bind Commands.DecompressArchiveToChildFolder, Mode=OneWay}" |
323 | | - Text="{x:Bind Commands.DecompressArchiveToChildFolder.Label, Mode=OneWay}" |
324 | | - Visibility="{x:Bind Commands.DecompressArchiveToChildFolder.IsExecutable, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" /> |
325 | | - </MenuFlyout> |
| 268 | + <MenuFlyout |
| 269 | + x:Name="ExtractFlyout" |
| 270 | + helpers:MenuFlyoutHelper.IsVisible="{x:Bind ViewModel.CanExtract, Mode=OneWay}" |
| 271 | + Opening="ActionGroupFlyout_Opening" |
| 272 | + Placement="Bottom" /> |
326 | 273 | </AppBarButton.Flyout> |
327 | 274 |
|
328 | 275 | </AppBarButton> |
|
364 | 311 | x:Name="SetAsBackgroundButton" |
365 | 312 | Width="Auto" |
366 | 313 | MinWidth="40" |
367 | | - Label="{helpers:ResourceString Name=SetAsBackgroundFlyout}" |
| 314 | + Label="{x:Bind Commands.Groups.SetAs.DisplayName}" |
368 | 315 | LabelPosition="Default" |
369 | 316 | Style="{StaticResource ToolBarAppBarButtonFlyoutStyle}" |
370 | | - ToolTipService.ToolTip="{helpers:ResourceString Name=SetAsBackgroundFlyout}" |
| 317 | + ToolTipService.ToolTip="{x:Bind Commands.Groups.SetAs.DisplayName}" |
371 | 318 | Visibility="{x:Bind Commands.SetAsWallpaperBackground.IsExecutable, Mode=OneWay}"> |
372 | 319 |
|
373 | | - <controls:ThemedIcon Style="{StaticResource App.ThemedIcons.SetWallpaper.16}" /> |
| 320 | + <controls:ThemedIcon Style="{x:Bind Commands.Groups.SetAs.ThemedIconStyle}" /> |
374 | 321 |
|
375 | 322 | <AppBarButton.Flyout> |
376 | | - <MenuFlyout Placement="Bottom"> |
377 | | - <MenuFlyoutItem |
378 | | - x:Name="SetAsBackgroundFlyoutItem" |
379 | | - Command="{x:Bind Commands.SetAsWallpaperBackground}" |
380 | | - KeyboardAcceleratorTextOverride="{x:Bind Commands.SetAsWallpaperBackground.HotKeyText, Mode=OneWay}" |
381 | | - Text="{helpers:ResourceString Name=Desktop}"> |
382 | | - <MenuFlyoutItem.Icon> |
383 | | - <FontIcon Foreground="{ThemeResource App.Theme.IconBaseBrush}" Glyph="{x:Bind Commands.SetAsWallpaperBackground.Glyph.BaseGlyph}" /> |
384 | | - </MenuFlyoutItem.Icon> |
385 | | - </MenuFlyoutItem> |
386 | | - <MenuFlyoutItem |
387 | | - x:Name="SetAsLockscreenFlyoutItem" |
388 | | - Command="{x:Bind Commands.SetAsLockscreenBackground}" |
389 | | - KeyboardAcceleratorTextOverride="{x:Bind Commands.SetAsLockscreenBackground.HotKeyText, Mode=OneWay}" |
390 | | - Text="{helpers:ResourceString Name=Lockscreen}"> |
391 | | - <MenuFlyoutItem.Icon> |
392 | | - <FontIcon Foreground="{ThemeResource App.Theme.IconBaseBrush}" Glyph="{x:Bind Commands.SetAsLockscreenBackground.Glyph.BaseGlyph}" /> |
393 | | - </MenuFlyoutItem.Icon> |
394 | | - </MenuFlyoutItem> |
395 | | - <MenuFlyoutItem |
396 | | - x:Name="SetAsAppBackgroundFlyoutItem" |
397 | | - Command="{x:Bind Commands.SetAsAppBackground}" |
398 | | - KeyboardAcceleratorTextOverride="{x:Bind Commands.SetAsAppBackground.HotKeyText, Mode=OneWay}" |
399 | | - Text="{helpers:ResourceString Name=Application}"> |
400 | | - <MenuFlyoutItem.Icon> |
401 | | - <FontIcon Foreground="{ThemeResource App.Theme.IconBaseBrush}" Glyph="{x:Bind Commands.SetAsAppBackground.Glyph.BaseGlyph}" /> |
402 | | - </MenuFlyoutItem.Icon> |
403 | | - </MenuFlyoutItem> |
404 | | - </MenuFlyout> |
| 323 | + <MenuFlyout |
| 324 | + x:Name="SetAsFlyout" |
| 325 | + Opening="ActionGroupFlyout_Opening" |
| 326 | + Placement="Bottom" /> |
405 | 327 | </AppBarButton.Flyout> |
406 | 328 |
|
407 | 329 | </AppBarButton> |
|
0 commit comments