-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
InvestigateRequires further investigation by the WPF team.Requires further investigation by the WPF team.Win 11 Theming
Description
Window 11 fluent theme.
When trying to define custom hi-lite color for button in old way:
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Background" Value="Red"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Lime"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
It's does not work. I also trying to set new styles:
<Button.Resources>
<SolidColorBrush x:Key="ButtonPointerOverBackgroundBrush" Color="Red"/>
<SolidColorBrush x:Key="ButtonPressedBackgroundBrush" Color="DarkRed"/>
</Button.Resources>
But it does not seems work neither.
lindexi
Metadata
Metadata
Assignees
Labels
InvestigateRequires further investigation by the WPF team.Requires further investigation by the WPF team.Win 11 Theming