microsoft / microsoft/microsoft-ui-xaml

AnimatedIcon won't update Foreground while unloaded

Open
#9,962 0 comments 0 reactions 0 assignees View on GitHub
area-AnimatedIcon bug team-Controls
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

AnimatedIcon won't update Foreground while unloaded, leaving the previous color after it is reloaded

### Steps to reproduce the bug

I have an AnimatedIcon in a Page with enabled caching.
If the user navigates to a new page, changes theme and navigates back, the AnimatedIcon will still use the previous foreground.
I guess that the best solution would be to update the color on Loaded?

### Expected behavior

AnimatedIcon Source Foreground is properly updated when the control loads again.

### Screenshots

_No response_

### NuGet package version

WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007

### Windows version

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start at the AnimatedIcon control and its Loaded lifecycle handling, then reproduce the cached-page, theme-change navigation described in the issue. Trace how Source.Foreground is applied before and after reload. Done means the control shows the current foreground after reload, with regression coverage for this scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.