mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-08-22 07:36:25 +00:00
Add tooltip to user selection selectbox
This commit is contained in:
@@ -490,7 +490,7 @@
|
|||||||
<Border HorizontalAlignment="Center" BorderBrush="{DynamicResource AppBorderColor}" BorderThickness="1" CornerRadius="4" Background="{DynamicResource CardBgColor}" Padding="16,12" Width="500">
|
<Border HorizontalAlignment="Center" BorderBrush="{DynamicResource AppBorderColor}" BorderThickness="1" CornerRadius="4" Background="{DynamicResource CardBgColor}" Padding="16,12" Width="500">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Text="What user do you want to apply changes to?" Style="{StaticResource CategoryHeaderTextBlock}"/>
|
<TextBlock Text="What user do you want to apply changes to?" Style="{StaticResource CategoryHeaderTextBlock}"/>
|
||||||
<ComboBox x:Name="UserSelectionCombo" Margin="0,0,0,6" AutomationProperties.Name="Apply Changes To">
|
<ComboBox x:Name="UserSelectionCombo" Margin="0,0,0,6" AutomationProperties.Name="Apply Changes To" ToolTip="The currently logged-in user profile">
|
||||||
<ComboBoxItem Content="Current User" IsSelected="True"/>
|
<ComboBoxItem Content="Current User" IsSelected="True"/>
|
||||||
<ComboBoxItem Content="Other User"/>
|
<ComboBoxItem Content="Other User"/>
|
||||||
<ComboBoxItem Content="Windows Default User (Sysprep)"/>
|
<ComboBoxItem Content="Windows Default User (Sysprep)"/>
|
||||||
|
|||||||
@@ -435,6 +435,9 @@ function Update-UserSelectionDescription {
|
|||||||
$UserSelectionDescription.Text = "The default user template, affecting all new users created after this point. Useful for Sysprep deployment."
|
$UserSelectionDescription.Text = "The default user template, affecting all new users created after this point. Useful for Sysprep deployment."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Mirror the description text on the combo's tooltip so the same context is shown on hover.
|
||||||
|
$UserSelectionCombo.ToolTip = $UserSelectionDescription.Text
|
||||||
}
|
}
|
||||||
|
|
||||||
function Test-OtherUsername {
|
function Test-OtherUsername {
|
||||||
|
|||||||
Reference in New Issue
Block a user