If GPO is set, disable Settings page logic

This commit is contained in:
Stefan Markovic
2023-12-29 12:23:44 +01:00
parent c674fee8f7
commit 7d3451101c

View File

@@ -25,7 +25,7 @@
IsOpen="True"
IsTabStop="True"
Severity="Informational" />
<custom:SettingsGroup x:Uid="CmdNotFound_ModuleInstallation" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
<custom:SettingsGroup x:Uid="CmdNotFound_ModuleInstallation" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
<controls:SettingsCard
x:Uid="CmdNotFound_CheckPowerShellVersionButtonControl"
ActionIcon="{ui:FontIcon Glyph=&#xE8A7;}"
@@ -42,7 +42,7 @@
Command="{x:Bind ViewModel.UninstallModuleEventHandler}"
IsClickEnabled="True" />
</custom:SettingsGroup>
<custom:SettingsGroup x:Uid="CmdNotFound_ModuleInstallationLogs" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
<custom:SettingsGroup x:Uid="CmdNotFound_ModuleInstallationLogs" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
<TextBox
Height="300"
FontFamily="Courier New"