2023-10-20 16:28:07 +02:00
|
|
|
<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:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-01-12 18:01:40 +01:00
|
|
|
xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls"
|
2024-01-02 15:09:35 +01:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI"
|
2023-10-20 16:28:07 +02:00
|
|
|
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">
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard
|
2023-10-20 16:28:07 +02:00
|
|
|
x:Uid="EnvironmentVariables_EnableToggleControl_HeaderText"
|
2024-01-26 17:12:33 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/Icons/EnvironmentVariables.png}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
2023-10-20 16:28:07 +02:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2023-10-20 16:28:07 +02:00
|
|
|
<InfoBar
|
2024-01-25 14:59:00 +01:00
|
|
|
x:Uid="GPO_SettingIsManaged"
|
2023-10-20 16:28:07 +02:00
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay}"
|
2025-01-19 15:32:46 +01:00
|
|
|
Severity="Informational">
|
|
|
|
|
<InfoBar.IconSource>
|
|
|
|
|
<FontIconSource FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="" />
|
|
|
|
|
</InfoBar.IconSource>
|
|
|
|
|
</InfoBar>
|
2024-01-03 16:41:26 +01:00
|
|
|
<controls:SettingsGroup x:Uid="EnvironmentVariables_Activation_GroupSettings" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard
|
2023-10-20 16:28:07 +02:00
|
|
|
x:Uid="EnvironmentVariables_LaunchButtonControl"
|
2024-01-02 15:09:35 +01:00
|
|
|
ActionIcon="{ui:FontIcon Glyph=}"
|
2023-10-20 16:28:07 +02:00
|
|
|
Command="{x:Bind ViewModel.LaunchEventHandler}"
|
2024-01-02 15:09:35 +01:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2023-10-20 16:28:07 +02:00
|
|
|
IsClickEnabled="True" />
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard
|
2023-10-20 16:28:07 +02:00
|
|
|
x:Uid="EnvironmentVariables_Toggle_LaunchAdministrator"
|
2024-01-02 15:09:35 +01:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.LaunchAdministratorEnabled, Mode=OneWay}">
|
|
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.LaunchAdministrator, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2023-10-20 16:28:07 +02:00
|
|
|
</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>
|