Skip to content

[Bug] Foreground lookup is split across three allow-lists, and AnimatedIcon gets none of them #1674

Done

Description

What happened?

Follow-up from #1655. Reactor decides which controls can take Foreground in three separate places in src/Reactor/Core/Reconciler.cs, and they don't agree.

  • GetDependencyPropertyName (ThemeRef path) covers Control, TextBlock and RichTextBlock (line 8862)
  • ApplyModifiers (brush path) covers Control and TextBlock (lines 7429-7435)
  • The InteractionStates foreground switch covers Control and TextBlock (lines 6269-6270)

WinUI.AnimatedIcon is an IconElement with its own Foreground DP, but it isn't a Control or a TextBlock, so none of the three paths reach it. AnimatedIcon(...).Foreground(...) reports REACTOR_MOD_003 and the value is dropped.

Expected: one shared element-to-Foreground-DP lookup (Control, TextBlock, RichTextBlock, IconElement) used by all three paths, with ModifierTable gates and the reactor-build-and-check skill row updated to match. That stops the lists drifting one type at a time, like RichTextBlock did in #1002.

Steps to reproduce

AnimatedIcon(new AnimatedBackVisualSource()).Foreground(Theme.Accent)
  1. Build. REACTOR_MOD_003 fires on .Foreground.
  2. Run. The icon keeps its default foreground.

The same happens with .Foreground(brush) and with an InteractionStates foreground on the icon.

Reactor version / commit

main @ dbda02a

Platform

Both

.NET SDK version

11.0.100

Windows version

N/A

Windows App SDK version

N/A

Logs / stack trace

N/A

Confirmation

  • I have searched existing issues and this isn't a duplicate.
  • This bug reproduces against the current main branch (or I've noted otherwise above).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions