Skip to content

Inconsistent Animations and Effects in Windows 11 Styles #8670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
harshit7962 opened this issue Jan 11, 2024 · 2 comments
Open

Inconsistent Animations and Effects in Windows 11 Styles #8670

harshit7962 opened this issue Jan 11, 2024 · 2 comments
Milestone

Comments

@harshit7962
Copy link
Member

harshit7962 commented Jan 11, 2024

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
Copy link

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants