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"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:behaviors="using:Microsoft.PowerToys.Settings.UI.Behaviors"
|
|
|
|
|
xmlns:winui="using:Microsoft.UI.Xaml.Controls"
|
|
|
|
|
xmlns:helpers="using:Microsoft.PowerToys.Settings.UI.Helpers"
|
|
|
|
|
xmlns:views="using:Microsoft.PowerToys.Settings.UI.Views"
|
|
|
|
|
xmlns:ic="using:Microsoft.Xaml.Interactions.Core"
|
|
|
|
|
xmlns:i="using:Microsoft.Xaml.Interactivity"
|
|
|
|
|
mc:Ignorable="d">
|
|
|
|
|
|
|
|
|
|
<i:Interaction.Behaviors>
|
|
|
|
|
<ic:EventTriggerBehavior EventName="Loaded">
|
|
|
|
|
<ic:InvokeCommandAction Command="{x:Bind ViewModel.LoadedCommand}" />
|
|
|
|
|
</ic:EventTriggerBehavior>
|
|
|
|
|
</i:Interaction.Behaviors>
|
|
|
|
|
|
2020-03-27 16:58:53 +01:00
|
|
|
<Grid>
|
2020-03-30 02:02:25 -07:00
|
|
|
<winui:NavigationView
|
2020-03-11 10:43:32 -07:00
|
|
|
x:Name="navigationView"
|
|
|
|
|
IsBackButtonVisible="Collapsed"
|
|
|
|
|
IsBackEnabled="{x:Bind ViewModel.IsBackEnabled, Mode=OneWay}"
|
|
|
|
|
SelectedItem="{x:Bind ViewModel.Selected, Mode=OneWay}"
|
|
|
|
|
IsSettingsVisible="False"
|
|
|
|
|
IsPaneToggleButtonVisible="False"
|
|
|
|
|
PaneDisplayMode="Left"
|
|
|
|
|
Background="{ThemeResource SystemControlBackgroundAltHighBrush}">
|
2020-03-27 16:58:53 +01:00
|
|
|
<!-- <winui:NavigationView.PaneHeader>
|
|
|
|
|
|
2020-03-11 10:43:32 -07:00
|
|
|
TODO:
|
|
|
|
|
PowerToys needs to be string
|
|
|
|
|
Think maybe about svg logo here
|
|
|
|
|
Margin should be style
|
2020-03-27 16:58:53 +01:00
|
|
|
|
|
|
|
|
<TextBlock Margin="12, 24, 0, 6" Style="{StaticResource SubheaderTextBlockStyle}" FontWeight="Bold">PowerToys</TextBlock>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</winui:NavigationView.PaneHeader> -->
|
2020-03-30 02:02:25 -07:00
|
|
|
<winui:NavigationView.MenuItems>
|
|
|
|
|
<winui:NavigationViewItem x:Uid="Shell_General" helpers:NavHelper.NavigateTo="views:GeneralPage">
|
|
|
|
|
<winui:NavigationViewItem.Icon>
|
|
|
|
|
<FontIcon Glyph=""/>
|
|
|
|
|
</winui:NavigationViewItem.Icon>
|
|
|
|
|
</winui:NavigationViewItem>
|
|
|
|
|
|
|
|
|
|
<!-- TO DO: Update icon -->
|
2020-03-31 14:32:22 +02:00
|
|
|
<winui:NavigationViewItem x:Uid="Shell_FancyZones" helpers:NavHelper.NavigateTo="views:FancyZonesPage">
|
2020-03-30 02:02:25 -07:00
|
|
|
<winui:NavigationViewItem.Icon>
|
2020-04-07 10:19:14 -07:00
|
|
|
<PathIcon Data="M896 0v896H0V0h896zM768 768V128H128v640h640zM0 1920v-896h1920v896H0zm128-768v640h1664v-640H128zM1024 0h896v896h-896V0zm768 768V128h-640v640h640z"></PathIcon>
|
2020-03-30 02:02:25 -07:00
|
|
|
</winui:NavigationViewItem.Icon>
|
|
|
|
|
</winui:NavigationViewItem>
|
2020-05-08 14:13:48 -07:00
|
|
|
|
|
|
|
|
<winui:NavigationViewItem x:Uid="Shell_PowerPreview" helpers:NavHelper.NavigateTo="views:PowerPreviewPage" >
|
|
|
|
|
<winui:NavigationViewItem.Icon>
|
2020-05-11 14:43:13 -07:00
|
|
|
<PathIcon Data="M2048 1792h-384v128h-384v-128H768v128H384v-128H0V256q0-27 10-50t27-40 41-28 50-10h480q45 0 77 9t58 24 46 31 40 31 44 23 55 10h992q27 0 50 10t40 27 28 41 10 50v1408zM128 256v128h480q24 0 42-4t33-13 29-20 32-27q-17-15-31-26t-30-20-33-13-42-5H128zm1152 1408v-256H768v256h512zm256 128v-576q0-26-19-45t-45-19H576q-26 0-45 19t-19 45v576h128v-512h768v512h128zm384-1408H928q-31 0-54 9t-44 24-41 31-46 31-57 23-78 10H128v1152h256v-448q0-40 15-75t41-61 61-41 75-15h896q40 0 75 15t61 41 41 61 15 75v448h256V384z" ></PathIcon>
|
2020-05-08 14:13:48 -07:00
|
|
|
</winui:NavigationViewItem.Icon>
|
|
|
|
|
</winui:NavigationViewItem>
|
2020-03-27 16:58:53 +01:00
|
|
|
|
2020-03-30 02:02:25 -07:00
|
|
|
<!-- TO DO: Update icon -->
|
2020-05-08 14:13:48 -07:00
|
|
|
<winui:NavigationViewItem x:Uid="Shell_ImageResizer" helpers:NavHelper.NavigateTo="views:ImageResizerPage">
|
2020-03-30 02:02:25 -07:00
|
|
|
<winui:NavigationViewItem.Icon>
|
2020-05-08 14:13:48 -07:00
|
|
|
<PathIcon Data="M0 768h1408v1152H0V768zm128 1024h870l-582-581-288 288v293zm1152 0v-102l-224-223-101 101 223 224h102zM128 896v421l288-287 448 447 192-191 224 224V896H128zm832 256q-26 0-45-19t-19-45q0-26 19-45t45-19q26 0 45 19t19 45q0 26-19 45t-45 19zm960-512V347l-339 338-90-90 338-339h-293V128h512v512h-128zm-768-512h256v128h-256V128zm-128 128H768V128h256v128zm-384 0H384V128h256v128zm-384 0H0V128h256v128zM128 640H0V384h128v256zm1920 128v256h-128V768h128zm-128 384h128v256h-128v-256zm0 384h128v256h-128v-256zm-384 256h256v128h-256v-128z"></PathIcon>
|
2020-03-30 02:02:25 -07:00
|
|
|
</winui:NavigationViewItem.Icon>
|
|
|
|
|
</winui:NavigationViewItem>
|
2020-03-27 16:58:53 +01:00
|
|
|
|
2020-03-30 02:02:25 -07:00
|
|
|
<!-- TO DO: Update icon -->
|
2020-05-08 14:13:48 -07:00
|
|
|
<winui:NavigationViewItem x:Uid="Shell_KeyboardManager" helpers:NavHelper.NavigateTo="views:KeyboardManagerPage">
|
2020-03-30 02:02:25 -07:00
|
|
|
<winui:NavigationViewItem.Icon>
|
2020-05-08 14:13:48 -07:00
|
|
|
<FontIcon Glyph=""/>
|
2020-03-30 02:02:25 -07:00
|
|
|
</winui:NavigationViewItem.Icon>
|
|
|
|
|
</winui:NavigationViewItem>
|
2020-03-27 16:58:53 +01:00
|
|
|
|
2020-05-08 14:13:48 -07:00
|
|
|
<!-- TO DO: Update icon -->
|
|
|
|
|
<winui:NavigationViewItem x:Uid="Shell_PowerRename" helpers:NavHelper.NavigateTo="views:PowerRenamePage">
|
2020-03-30 02:02:25 -07:00
|
|
|
<winui:NavigationViewItem.Icon>
|
2020-05-08 14:13:48 -07:00
|
|
|
<FontIcon Glyph=""/>
|
2020-03-30 02:02:25 -07:00
|
|
|
</winui:NavigationViewItem.Icon>
|
|
|
|
|
</winui:NavigationViewItem>
|
2020-03-31 14:32:22 +02:00
|
|
|
|
|
|
|
|
<!-- TO DO: Update icon -->
|
2020-05-08 14:13:48 -07:00
|
|
|
<winui:NavigationViewItem x:Uid="Shell_PowerLauncher" helpers:NavHelper.NavigateTo="views:PowerLauncherPage">
|
2020-03-31 14:32:22 +02:00
|
|
|
<winui:NavigationViewItem.Icon>
|
2020-05-08 14:13:48 -07:00
|
|
|
<FontIcon Glyph=""/>
|
2020-03-31 14:32:22 +02:00
|
|
|
</winui:NavigationViewItem.Icon>
|
|
|
|
|
</winui:NavigationViewItem>
|
2020-04-08 13:53:09 -07:00
|
|
|
|
|
|
|
|
<!-- TO DO: Update icon -->
|
2020-05-08 14:13:48 -07:00
|
|
|
<winui:NavigationViewItem x:Uid="Shell_ShortcutGuide" helpers:NavHelper.NavigateTo="views:ShortcutGuidePage">
|
2020-04-08 13:53:09 -07:00
|
|
|
<winui:NavigationViewItem.Icon>
|
2020-05-08 14:13:48 -07:00
|
|
|
<FontIcon Glyph=""/>
|
2020-04-08 13:53:09 -07:00
|
|
|
</winui:NavigationViewItem.Icon>
|
|
|
|
|
</winui:NavigationViewItem>
|
2020-05-08 14:13:48 -07:00
|
|
|
|
2020-03-30 02:02:25 -07:00
|
|
|
</winui:NavigationView.MenuItems>
|
|
|
|
|
<i:Interaction.Behaviors>
|
|
|
|
|
<behaviors:NavigationViewHeaderBehavior
|
2020-03-11 10:43:32 -07:00
|
|
|
DefaultHeader="{x:Bind ViewModel.Selected.Content, Mode=OneWay}">
|
2020-03-30 02:02:25 -07:00
|
|
|
<behaviors:NavigationViewHeaderBehavior.DefaultHeaderTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<!-- TODO: Style clean up-->
|
|
|
|
|
<Grid Margin="0, 24, 0, 6">
|
|
|
|
|
<TextBlock
|
2020-03-11 10:43:32 -07:00
|
|
|
Text="{Binding}"
|
|
|
|
|
FontWeight="Bold"
|
|
|
|
|
Style="{ThemeResource TitleTextBlockStyle}"
|
|
|
|
|
Margin="{StaticResource SmallLeftRightMargin}" />
|
2020-03-31 14:32:22 +02:00
|
|
|
</Grid>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</behaviors:NavigationViewHeaderBehavior.DefaultHeaderTemplate>
|
|
|
|
|
</behaviors:NavigationViewHeaderBehavior>
|
|
|
|
|
<ic:EventTriggerBehavior EventName="ItemInvoked">
|
|
|
|
|
<ic:InvokeCommandAction Command="{x:Bind ViewModel.ItemInvokedCommand}" />
|
|
|
|
|
</ic:EventTriggerBehavior>
|
|
|
|
|
</i:Interaction.Behaviors>
|
|
|
|
|
<ScrollViewer Grid.Column="0">
|
|
|
|
|
<Grid Margin="{StaticResource MediumLeftRightBottomMargin}">
|
2020-03-30 02:02:25 -07:00
|
|
|
<Frame x:Name="shellFrame" />
|
|
|
|
|
</Grid>
|
2020-03-31 14:32:22 +02:00
|
|
|
</ScrollViewer>
|
|
|
|
|
</winui:NavigationView>
|
2020-03-27 16:58:53 +01:00
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|