dotnet / dotnet/wpf

Inconsistent Animations and Effects in Windows 11 Styles

Open
#8,670 2 comments 1 reaction 0 assignees View on GitHub
Win 11 Theming
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.