Open harshit7962 opened 9 months ago
I didn't realise we could enable Windows 11 styles in WPF yet. How do you do it? I can't seem to find any info on how to do it.
@aquinn39 - This is not yet released. We are working on this to get released in the next major release (.NET 9)
Description
The effects designed in the windows 11 styles have fixed brush values for events such as hover or keyboard focus. This causes inconsistent results when properties such as
Background
,Foreground
,BorderBrush
etc are set in an application.Reproduction Steps
An example to demonstrate this inconsistency involves following steps: 1) Create a WPF application that supports windows 11 styles 2) Create a text box and specify its background to red and foreground to yellow. 3) Hover over the text box or select the text box.
Expected behavior
The text box should have a background which is a lighter shade of red when hovered over or when typing in.
Actual behavior
The text box has a whitish/greyish color.
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
.NET 9 Windows 11 x64
Other information
No response