WorkspacesPage.xaml
1 <local:NavigablePage 2 x:Class="Microsoft.PowerToys.Settings.UI.Views.WorkspacesPage" 3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 5 xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" 6 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 7 xmlns:local="using:Microsoft.PowerToys.Settings.UI.Helpers" 8 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 9 xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls" 10 xmlns:ui="using:CommunityToolkit.WinUI" 11 AutomationProperties.LandmarkType="Main" 12 mc:Ignorable="d"> 13 <controls:SettingsPageControl 14 x:Uid="Workspaces" 15 IsTabStop="False" 16 ModuleImageSource="ms-appx:///Assets/Settings/Modules/Workspaces.png"> 17 <controls:SettingsPageControl.ModuleContent> 18 <StackPanel ChildrenTransitions="{StaticResource SettingsCardsAnimations}" Orientation="Vertical"> 19 <controls:GPOInfoControl ShowWarning="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay}"> 20 <tkcontrols:SettingsCard 21 Name="WorkspacesEnableToggleControlHeaderText" 22 x:Uid="Workspaces_EnableToggleControl_HeaderText" 23 HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/Icons/Workspaces.png}"> 24 <ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}" /> 25 </tkcontrols:SettingsCard> 26 </controls:GPOInfoControl> 27 <controls:SettingsGroup x:Uid="Workspaces_Activation_GroupSettings" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}"> 28 <tkcontrols:SettingsCard 29 Name="WorkspacesActivationShortcut" 30 x:Uid="Workspaces_ActivationShortcut" 31 HeaderIcon="{ui:FontIcon Glyph=}"> 32 <controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.Hotkey, Mode=TwoWay}" /> 33 </tkcontrols:SettingsCard> 34 <tkcontrols:SettingsCard 35 Name="WorkspacesLaunchEditorButtonControl" 36 x:Uid="Workspaces_LaunchEditorButtonControl" 37 ActionIcon="{ui:FontIcon Glyph=}" 38 Command="{x:Bind ViewModel.LaunchEditorEventHandler}" 39 HeaderIcon="{ui:FontIcon Glyph=}" 40 IsClickEnabled="True" /> 41 </controls:SettingsGroup> 42 </StackPanel> 43 </controls:SettingsPageControl.ModuleContent> 44 45 <controls:SettingsPageControl.PrimaryLinks> 46 <controls:PageLink x:Uid="LearnMore_Workspaces" Link="https://aka.ms/PowerToysOverview_Workspaces" /> 47 </controls:SettingsPageControl.PrimaryLinks> 48 </controls:SettingsPageControl> 49 </local:NavigablePage>