dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.06k stars 1.17k forks source link

Inconsistent Animations and Effects in Windows 11 Styles #8670

Open harshit7962 opened 9 months ago

harshit7962 commented 9 months ago

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

aquinn39 commented 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.

pchaurasia14 commented 9 months ago

@aquinn39 - This is not yet released. We are working on this to get released in the next major release (.NET 9)