[Fluent] Some animations play even when animation effects are disabled in Windows Settings
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
### Description
In Settings -> Accessibility -> Visual effects we can disable animations. This applies to all UI frameworks - Forms, WPF, UWP, WinUI, etc. With the WPF Fluent styles, the animations for open a ContextMenu and ComboBox still open. There may be other animations as well, these are just the ones I've observed.
### Reproduction Steps
1. Create a new WPF app and enable Fluent themes as detailed [here](https://github.com/dotnet/wpf/blob/main/Documentation/docs/using-fluent.md#setting-fluent-theme-by-including-fluent-theme-resourcedictionary).
2. Add a TextBox and ComboBox (and put some random dummy ComboBoxItems in it) to your UI
3. Go to Settings -> Accessibility -> Visual effects and turn off Animation effects
4. Run the app
5. Right click the TextBox to open it's context menu
6. Click on the ComboBox
7. Observe that both play their opening animations, despite them being disabled in Settings
OR
1. Install the WPF Gallery app - https://apps.microsoft.com/detail/9NDLX60WX4KQ?hl=en-us&gl=AU&ocid=pdpshare
2. Go to Settings -> Accessibility -> Visual effects and turn off Animation effects
3. Use the bar on the left side to view the pages for ComboBox
4. Open the ComboBox
5. Repeat the above for TextBox, but right click the TextBox instead to bring up its ContextMenu
6. Observe the animations playing when they open, even though they shouldn't
### Expected behavior
No animations should play when animation effects are turned off in Windows Settings.
### Actual behavior
ContextMenu and ComboBox play an animation when they open.
### Regression?
Yes, didn't happen before.
### Known Workarounds
_No response_
### Impact
Causes apps to disrespect the users' accessibility settings.
### Configuration
- .NET runtime 10.0.9, built with SDK 10.0.301 - x64
- Windows 11 version 23H2, build 22631.6199 - x64
### Other information
_No response_
Contributor guide
Research direction
Start with the Fluent theme setup described in Documentation/docs/using-fluent.md, then trace the Fluent styling and opening behavior for ContextMenu and ComboBox. Reproduce the issue with Windows Animation effects disabled and verify that both controls open without animations while other Fluent behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- accessibility, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100