eb2ef7070b
* Removed hardcoded background * Background * Updated pages * Added OOBE to shellpage * Margin fixes * Fix * Resource update * Resource string update * Removed reference from installer file * Updated UI fixes and remove conflicts * Adding new settings control * PowerRename * Sidepanel updates * Shortcut Guide * Updates screeens * General page updates * Awake UX update * Changed order for power preview note * Fixes * UI fixes * KBM * IsEnabled state support * Added new controls * Update * Updated nugest packages * Replaced itemscontrol * Introducing setting button style * FancyZones page * Plugin page * Switch case * Fixed typo * Plugin manager update * Introducing SettingExpander * Setting automation properties * Accesibility improvements * VCM and cleanup * Refactoring OOBE pages part 1 * OOBE XAML refactoring * Added MinWidth to actioncontent controls * Updates to various settings * Spell update * Update to author label * Clean up * Removing redunant files * Move file * Updated files * Revert "Updated files" This reverts commit1a5c887eae
. * Revert "Move file" This reverts commit2b06c75c1f
. * Revert "Removing redunant files" This reverts commitfe79ec1701
. * Revert "Clean up" This reverts commit028e15fab6
. * Removed redundant styles * Revert "Removed redundant styles" This reverts commitdfdfd65021
. * Files cleanup * Removing converter, updating background and paddings * Styling updates * Unit test updates * Fixes * Installer fixes * Update Resources.resw * Shell page updates * Updated pagelinks * Styles re-ordering * Updated converter * Updated ToggleSwitch style * Bugfixes * Typo fix * [Settings] New UX - installer dll fixes (#12818) * [Settings] New UX - Fix some failing tests (#12822) * Bugfixes * Typo fix * Hiding VCM * Bugfixes * Download button fix * Remove Newtonsoft.Json from installer file * Updated visuals * Bugfixes * Syntax fix * Updated installer file * Bugfixes * New label * Theming support for OOBE * Put back in Documentation hyperlink * Right uid Co-authored-by: Niels Laute <niels9001@hotmail.com> Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
62 lines
3.1 KiB
XML
62 lines
3.1 KiB
XML
<UserControl
|
|
x:Class="Microsoft.PowerToys.Settings.UI.OOBE.Views.OobeShellPage"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="using:Microsoft.PowerToys.Settings.UI.OOBE.Views"
|
|
xmlns:winui="using:Microsoft.UI.Xaml.Controls"
|
|
xmlns:localModels="using:Microsoft.PowerToys.Settings.UI.OOBE.ViewModel"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
winui:BackdropMaterial.ApplyToRootOrPageBackground="True"
|
|
mc:Ignorable="d"
|
|
Loaded="UserControl_Loaded">
|
|
|
|
<UserControl.Resources>
|
|
<DataTemplate x:Key="NavigationViewMenuItem" x:DataType="localModels:OobePowerToysModule">
|
|
<winui:NavigationViewItem Content="{x:Bind ModuleName}" Tag="{x:Bind Tag}">
|
|
<winui:NavigationViewItem.Icon>
|
|
<BitmapIcon UriSource="{x:Bind FluentIcon}" ShowAsMonochrome="False"/>
|
|
</winui:NavigationViewItem.Icon>
|
|
</winui:NavigationViewItem>
|
|
</DataTemplate>
|
|
</UserControl.Resources>
|
|
|
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="LayoutVisualStates">
|
|
<VisualState x:Name="WideLayout">
|
|
<VisualState.StateTriggers>
|
|
<AdaptiveTrigger MinWindowWidth="720" />
|
|
</VisualState.StateTriggers>
|
|
</VisualState>
|
|
<VisualState x:Name="SmallLayout">
|
|
<VisualState.StateTriggers>
|
|
<AdaptiveTrigger MinWindowWidth="600" />
|
|
<AdaptiveTrigger MinWindowWidth="0" />
|
|
</VisualState.StateTriggers>
|
|
<VisualState.Setters>
|
|
<Setter Target="NavigationView.PaneDisplayMode"
|
|
Value="LeftMinimal" />
|
|
<Setter Target="NavigationView.IsPaneToggleButtonVisible"
|
|
Value="True" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
<winui:NavigationView IsSettingsVisible="False"
|
|
IsPaneToggleButtonVisible="False"
|
|
IsPaneOpen="True"
|
|
x:Name="NavigationView"
|
|
OpenPaneLength="296"
|
|
PaneDisplayMode="Left"
|
|
SelectionChanged="NavigationView_SelectionChanged"
|
|
IsBackButtonVisible="Collapsed"
|
|
MenuItemsSource="{x:Bind Modules, Mode=OneTime}"
|
|
MenuItemTemplate="{StaticResource NavigationViewMenuItem}">
|
|
<winui:NavigationView.Content>
|
|
<Frame x:Name="NavigationFrame" />
|
|
</winui:NavigationView.Content>
|
|
</winui:NavigationView>
|
|
</Grid>
|
|
</UserControl>
|