Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/Wpf.Ui/Controls/PasswordBox/PasswordBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,17 @@
Appearance="Secondary"
Background="Transparent"
BorderBrush="Transparent"
BorderThickness="0"
Command="{Binding Path=TemplateButtonCommand, RelativeSource={RelativeSource TemplatedParent}}"
CommandParameter="clear"
Cursor="Arrow"
Foreground="{DynamicResource TextControlButtonForeground}"
Icon="{StaticResource PasswordBoxClearIcon}"
IsTabStop="False" />
IsTabStop="False"
MouseOverBackground="{DynamicResource SubtleFillColorSecondaryBrush}"
MouseOverBorderBrush="Transparent"
PressedBackground="{DynamicResource SubtleFillColorTertiaryBrush}"
PressedBorderBrush="Transparent" />

<controls:Button
x:Name="RevealButton"
Expand All @@ -237,12 +242,17 @@
Appearance="Secondary"
Background="Transparent"
BorderBrush="Transparent"
BorderThickness="0"
Command="{Binding Path=TemplateButtonCommand, RelativeSource={RelativeSource TemplatedParent}}"
CommandParameter="reveal"
Cursor="Arrow"
Foreground="{DynamicResource TextControlButtonForeground}"
Icon="{StaticResource PasswordBoxRevealIcon}"
IsTabStop="False" />
IsTabStop="False"
MouseOverBackground="{DynamicResource SubtleFillColorSecondaryBrush}"
MouseOverBorderBrush="Transparent"
PressedBackground="{DynamicResource SubtleFillColorTertiaryBrush}"
PressedBorderBrush="Transparent" />

<ContentPresenter
x:Name="ControlIconRight"
Expand Down Expand Up @@ -308,6 +318,7 @@
<Condition Property="IsEnabled" Value="True" />
<Condition Property="IsMouseOver" Value="True" />
<Condition Property="IsFocused" Value="False" />
<Condition SourceName="ClearButton" Property="IsFocused" Value="False" />
</MultiTrigger.Conditions>
<Setter TargetName="ContentBorder" Property="Background" Value="{DynamicResource TextControlBackgroundPointerOver}" />
</MultiTrigger>
Expand Down
8 changes: 7 additions & 1 deletion src/Wpf.Ui/Controls/TextBox/TextBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,15 @@
Appearance="Secondary"
Background="Transparent"
BorderBrush="Transparent"
BorderThickness="0"
Command="{Binding Path=TemplateButtonCommand, RelativeSource={RelativeSource TemplatedParent}}"
Cursor="Arrow"
Foreground="{DynamicResource TextControlButtonForeground}"
IsTabStop="False">
IsTabStop="False"
MouseOverBackground="{DynamicResource SubtleFillColorSecondaryBrush}"
MouseOverBorderBrush="Transparent"
PressedBackground="{DynamicResource SubtleFillColorTertiaryBrush}"
PressedBorderBrush="Transparent">
<controls:Button.Icon>
<controls:SymbolIcon FontSize="{TemplateBinding FontSize}" Symbol="Dismiss24" />
</controls:Button.Icon>
Expand Down Expand Up @@ -253,6 +258,7 @@
<Condition Property="IsEnabled" Value="True" />
<Condition Property="IsMouseOver" Value="True" />
<Condition Property="IsFocused" Value="False" />
<Condition SourceName="ClearButton" Property="IsFocused" Value="False" />
</MultiTrigger.Conditions>
<Setter TargetName="ContentBorder" Property="Background" Value="{DynamicResource TextControlBackgroundPointerOver}" />
</MultiTrigger>
Expand Down