mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
55 lines
3.0 KiB
Plaintext
55 lines
3.0 KiB
Plaintext
|
|
<Page
|
||
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.RegistryPreviewPage"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
||
|
|
xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters"
|
||
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
|
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
|
||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
xmlns:ui="using:CommunityToolkit.WinUI.UI"
|
||
|
|
AutomationProperties.LandmarkType="Main"
|
||
|
|
mc:Ignorable="d">
|
||
|
|
|
||
|
|
<controls:SettingsPageControl
|
||
|
|
x:Uid="RegistryPreview"
|
||
|
|
ModuleImageSource="ms-appx:///Assets/Modules/RegistryPreview.png">
|
||
|
|
<controls:SettingsPageControl.ModuleContent>
|
||
|
|
<StackPanel Orientation="Vertical" ChildrenTransitions="{StaticResource SettingsCardsAnimations}">
|
||
|
|
<labs:SettingsCard
|
||
|
|
x:Uid="RegistryPreview_Enable_RegistryPreview"
|
||
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsRegistryPreview.png}"
|
||
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
||
|
|
<ToggleSwitch IsOn="{x:Bind ViewModel.IsRegistryPreviewEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||
|
|
</labs:SettingsCard>
|
||
|
|
|
||
|
|
<InfoBar
|
||
|
|
x:Uid="GPO_IsSettingForced"
|
||
|
|
IsClosable="False"
|
||
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
||
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
||
|
|
Severity="Informational" />
|
||
|
|
|
||
|
|
<controls:SettingsGroup x:Uid="RegistryPreview_Launch_GroupSettings" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsRegistryPreviewEnabled}">
|
||
|
|
<labs:SettingsCard
|
||
|
|
x:Uid="RegistryPreview_LaunchButtonControl"
|
||
|
|
ActionIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
||
|
|
FontSize=14,
|
||
|
|
Glyph=}"
|
||
|
|
Command="{x:Bind ViewModel.LaunchEventHandler}"
|
||
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
||
|
|
Glyph=}"
|
||
|
|
IsClickEnabled="True" />
|
||
|
|
</controls:SettingsGroup>
|
||
|
|
|
||
|
|
</StackPanel>
|
||
|
|
</controls:SettingsPageControl.ModuleContent>
|
||
|
|
|
||
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
||
|
|
<controls:PageLink
|
||
|
|
x:Uid="LearnMore_RegistryPreview"
|
||
|
|
Link="https://aka.ms/PowerToysOverview_RegistryPreview" />
|
||
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
||
|
|
</controls:SettingsPageControl>
|
||
|
|
</Page>
|