Skip to content

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

Closed
NotYoojun wants to merge 1 commit into
mainfrom
fix/430
Closed

fix(Expander): respect Windows "Animation effects" setting#431
NotYoojun wants to merge 1 commit into
mainfrom
fix/430

Conversation

@NotYoojun

@NotYoojun NotYoojun commented Jul 19, 2026

Copy link
Copy Markdown
Member

There was an accidental leading s. This PR is superseded by #432

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
Copilot AI review requested due to automatic review settings July 19, 2026 10:46

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 Expander/SettingsExpander animation behavior to respect the Windows “Animation effects” accessibility setting by skipping expand/collapse animations when system-wide animations are disabled.

Changes:

  • Added a check against Helper.IsAnimationsEnabled before running expander animations.
  • When animations are disabled, the expander content snaps directly to its expanded/collapsed state instead of animating.

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


private static void RunExpanderAnimation(Expander expander)
{
s if (!Helper.IsAnimationsEnabled)
@NotYoojun NotYoojun closed this Jul 19, 2026
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.

2 participants