2020-03-30 02:02:25 -07:00
|
|
|
<UserControl
|
2020-03-11 10:43:32 -07:00
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.ShellPage"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2022-08-27 02:17:20 +03:00
|
|
|
xmlns:helpers="using:Microsoft.PowerToys.Settings.UI.Helpers"
|
|
|
|
|
xmlns:i="using:Microsoft.Xaml.Interactivity"
|
|
|
|
|
xmlns:ic="using:Microsoft.Xaml.Interactions.Core"
|
2020-03-11 10:43:32 -07:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI.UI"
|
2020-03-11 10:43:32 -07:00
|
|
|
xmlns:views="using:Microsoft.PowerToys.Settings.UI.Views"
|
2021-12-07 18:22:27 +01:00
|
|
|
HighContrastAdjustment="None"
|
2020-03-11 10:43:32 -07:00
|
|
|
mc:Ignorable="d">
|
|
|
|
|
|
|
|
|
|
<i:Interaction.Behaviors>
|
|
|
|
|
<ic:EventTriggerBehavior EventName="Loaded">
|
|
|
|
|
<ic:InvokeCommandAction Command="{x:Bind ViewModel.LoadedCommand}" />
|
|
|
|
|
</ic:EventTriggerBehavior>
|
|
|
|
|
</i:Interaction.Behaviors>
|
|
|
|
|
|
2023-03-14 18:18:30 +01:00
|
|
|
<Grid x:Name="RootGrid">
|
2022-09-20 18:59:18 +02:00
|
|
|
<NavigationView
|
2022-08-27 02:17:20 +03:00
|
|
|
x:Name="navigationView"
|
|
|
|
|
CompactModeThresholdWidth="1007"
|
|
|
|
|
ExpandedModeThresholdWidth="1007"
|
|
|
|
|
IsBackButtonVisible="Collapsed"
|
|
|
|
|
IsBackEnabled="{x:Bind ViewModel.IsBackEnabled, Mode=OneWay}"
|
|
|
|
|
IsSettingsVisible="False"
|
|
|
|
|
IsTitleBarAutoPaddingEnabled="False"
|
|
|
|
|
PaneClosed="NavigationView_PaneClosed"
|
|
|
|
|
PaneOpened="NavigationView_PaneOpened"
|
2022-12-12 17:34:21 +01:00
|
|
|
SelectionChanged="NavigationView_SelectionChanged"
|
2022-08-27 02:17:20 +03:00
|
|
|
SelectedItem="{x:Bind ViewModel.Selected, Mode=OneWay}">
|
2022-09-20 18:59:18 +02:00
|
|
|
<NavigationView.Resources>
|
2022-11-23 19:57:09 +01:00
|
|
|
<SolidColorBrush
|
|
|
|
|
x:Key="NavigationViewContentBackground"
|
|
|
|
|
Color="Transparent" />
|
|
|
|
|
<SolidColorBrush
|
|
|
|
|
x:Key="NavigationViewContentGridBorderBrush"
|
|
|
|
|
Color="Transparent" />
|
2022-09-20 18:59:18 +02:00
|
|
|
</NavigationView.Resources>
|
|
|
|
|
<NavigationView.MenuItems>
|
2022-11-23 19:57:09 +01:00
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_General"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:GeneralPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsSettings.png}" />
|
|
|
|
|
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_AlwaysOnTop"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:AlwaysOnTopPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsAlwaysOnTop.png}" />
|
|
|
|
|
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_Awake"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:AwakePage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsAwake.png}" />
|
|
|
|
|
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_ColorPicker"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:ColorPickerPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsColorPicker.png}" />
|
|
|
|
|
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_FancyZones"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:FancyZonesPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsFancyZones.png}" />
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_FileLocksmith"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:FileLocksmithPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsFileLocksmith.png}" />
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_PowerPreview"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:PowerPreviewPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsFileExplorerPreview.png}" />
|
|
|
|
|
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_Hosts"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:HostsPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsHosts.png}" />
|
|
|
|
|
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_ImageResizer"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:ImageResizerPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsImageResizer.png}" />
|
|
|
|
|
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_KeyboardManager"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:KeyboardManagerPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsKeyboardManager.png}" />
|
|
|
|
|
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_MouseUtilities"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:MouseUtilsPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsMouseUtils.png}" />
|
|
|
|
|
|
2023-02-23 06:59:49 -08:00
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_PastePlain"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:PastePlainPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsPastePlain.png}" />
|
|
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_PowerRename"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:PowerRenamePage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsPowerRename.png}" />
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_PowerLauncher"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:PowerLauncherPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsPowerToysRun.png}" />
|
|
|
|
|
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_QuickAccent"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:PowerAccentPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsPowerAccent.png}" />
|
|
|
|
|
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_MeasureTool"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:MeasureToolPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsScreenRuler.png}" />
|
|
|
|
|
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_ShortcutGuide"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:ShortcutGuidePage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsShortcutGuide.png}" />
|
|
|
|
|
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Shell_TextExtractor"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:PowerOcrPage"
|
|
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsPowerOcr.png}" />
|
2021-06-29 13:06:12 +03:00
|
|
|
|
2022-09-20 18:59:18 +02:00
|
|
|
<NavigationViewItem
|
2022-08-27 02:17:20 +03:00
|
|
|
x:Uid="Shell_VideoConference"
|
|
|
|
|
helpers:NavHelper.NavigateTo="views:VideoConferencePage"
|
2022-11-23 19:57:09 +01:00
|
|
|
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsVideoConferenceMute.png}"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.IsVideoConferenceBuild, Mode=OneWay}" />
|
2022-09-20 18:59:18 +02:00
|
|
|
</NavigationView.MenuItems>
|
|
|
|
|
<NavigationView.PaneFooter>
|
2021-08-23 19:48:52 +02:00
|
|
|
<StackPanel Orientation="Vertical">
|
2022-11-23 19:57:09 +01:00
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="OOBE_NavViewItem"
|
|
|
|
|
Icon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
|
Tapped="OOBEItem_Tapped" />
|
|
|
|
|
<NavigationViewItem
|
|
|
|
|
x:Uid="Feedback_NavViewItem"
|
|
|
|
|
Icon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
|
Tapped="FeedbackItem_Tapped" />
|
2021-08-23 19:48:52 +02:00
|
|
|
</StackPanel>
|
2022-09-20 18:59:18 +02:00
|
|
|
</NavigationView.PaneFooter>
|
2020-03-30 02:02:25 -07:00
|
|
|
<i:Interaction.Behaviors>
|
2021-08-23 19:48:52 +02:00
|
|
|
<ic:EventTriggerBehavior EventName="ItemInvoked">
|
|
|
|
|
<ic:InvokeCommandAction Command="{x:Bind ViewModel.ItemInvokedCommand}" />
|
|
|
|
|
</ic:EventTriggerBehavior>
|
|
|
|
|
</i:Interaction.Behaviors>
|
|
|
|
|
<Frame x:Name="shellFrame" />
|
2022-09-20 18:59:18 +02:00
|
|
|
</NavigationView>
|
2020-03-27 16:58:53 +01:00
|
|
|
</Grid>
|
2021-10-07 16:48:45 +03:00
|
|
|
</UserControl>
|