Skip to content

fix(Expander): respect Windows "Animation effects" setting - #432

Merged
NotYoojun merged 2 commits into
mainfrom
fix/430
Jul 22, 2026
Merged

fix(Expander): respect Windows "Animation effects" setting#432
NotYoojun merged 2 commits into
mainfrom
fix/430

Conversation

@NotYoojun

Copy link
Copy Markdown
Member

Expander and SettingsExpander always played their expand/collapse animation, ignoring the Windows 11 Accessibility -> Visual effects -> Animation effects setting, unlike NavigationView and other controls.

ExpanderAnimationsHelper.RunExpanderAnimation now checks Helper.IsAnimationsEnabled (SystemParameters.ClientAreaAnimation) and snaps the content to its target state instead of animating when animations are disabled system-wide.

Closes #430

Expander and SettingsExpander always played their expand/collapse
animation, ignoring the Windows 11 Accessibility -> Visual effects ->
Animation effects setting, unlike NavigationView and other controls.

ExpanderAnimationsHelper.RunExpanderAnimation now checks
Helper.IsAnimationsEnabled (SystemParameters.ClientAreaAnimation) and
snaps the content to its target state instead of animating when
animations are disabled system-wide.

Closes #430
Removed an accidental leading `s` before an `if` statement in `RunExpanderAnimation`, restoring valid C# syntax and ensuring the animation-enabled check compiles correctly.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates ExpanderAnimationsHelper so Expander/SettingsExpander respects the Windows “Animation effects” accessibility setting by skipping expand/collapse animations when system-wide animations are disabled.

Changes:

  • Added a system animation-enabled gate (Helper.IsAnimationsEnabled) before running expander animations.
  • When animations are disabled, the expander content is snapped directly to its expanded/collapsed state instead of animating.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@NotYoojun

Copy link
Copy Markdown
Member Author

Waiting for #430 OP to confirm the fix

@NotYoojun
NotYoojun merged commit e6d5df2 into main Jul 22, 2026
3 checks passed
@NotYoojun
NotYoojun deleted the fix/430 branch July 25, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expander animations not disabled when Animation effects is off

2 participants