mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
53 lines
3.4 KiB
Plaintext
53 lines
3.4 KiB
Plaintext
|
|
<Page
|
||
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.EnvironmentVariablesPage"
|
||
|
|
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:controls1="using:CommunityToolkit.WinUI.Controls"
|
||
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
xmlns:ui="using:CommunityToolkit.WinUI.UI"
|
||
|
|
mc:Ignorable="d">
|
||
|
|
|
||
|
|
<controls:SettingsPageControl x:Uid="EnvironmentVariables" ModuleImageSource="ms-appx:///Assets/Settings/Modules/EnvironmentVariables.png">
|
||
|
|
<controls:SettingsPageControl.ModuleContent>
|
||
|
|
<StackPanel ChildrenTransitions="{StaticResource SettingsCardsAnimations}" Orientation="Vertical">
|
||
|
|
<controls1:SettingsCard
|
||
|
|
x:Uid="EnvironmentVariables_EnableToggleControl_HeaderText"
|
||
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/FluentIcons/FluentIconsEnvironmentVariables.png}"
|
||
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
||
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}" />
|
||
|
|
</controls1: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="EnvironmentVariables_Activation_GroupSettings" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
||
|
|
<controls1:SettingsCard
|
||
|
|
x:Uid="EnvironmentVariables_LaunchButtonControl"
|
||
|
|
ActionIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
||
|
|
FontSize=14,
|
||
|
|
Glyph=}"
|
||
|
|
Command="{x:Bind ViewModel.LaunchEventHandler}"
|
||
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
||
|
|
Glyph=}"
|
||
|
|
IsClickEnabled="True" />
|
||
|
|
<controls1:SettingsCard
|
||
|
|
x:Uid="EnvironmentVariables_Toggle_LaunchAdministrator"
|
||
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
||
|
|
Glyph=}"
|
||
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.LaunchAdministratorEnabled}">
|
||
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.LaunchAdministrator}" />
|
||
|
|
</controls1:SettingsCard>
|
||
|
|
</controls:SettingsGroup>
|
||
|
|
</StackPanel>
|
||
|
|
</controls:SettingsPageControl.ModuleContent>
|
||
|
|
|
||
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
||
|
|
<controls:PageLink x:Uid="LearnMore_EnvironmentVariables" Link="https://aka.ms/PowerToysOverview_EnvironmentVariables" />
|
||
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
||
|
|
</controls:SettingsPageControl>
|
||
|
|
</Page>
|