Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cyclic Reference Error in WPF Theme Application (Settings & System Tray) #37613

Open
Kaleemullah-Younas opened this issue Feb 24, 2025 · 1 comment
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams

Comments

@Kaleemullah-Younas
Copy link

Microsoft PowerToys version

0.70.0

Installation method

Microsoft Store

Running as admin

Yes

Area(s) with issue?

General, System tray interaction, Settings

Steps to reproduce

  1. Open PowerToys and verify the version by hovering over the system tray icon or checking within Settings.
  2. Trigger a system theme change (or any action that causes the UI to refresh).
  3. Observe that the application throws a cyclic reference error while evaluating the Style property on a ScrollViewer.

Image

✔️ Expected Behavior

  • The UI components, including those within Settings and system tray interactions, should load and update smoothly without triggering cyclic reference errors.
  • The theme should apply correctly without causing an infinite loop in style evaluation.

❌ Actual Behavior

  • A System.InvalidOperationException is thrown with the message:
    "Cyclic reference found while evaluating the Style property on element 'System.Windows.Controls.ScrollViewer'."
  • The error log details indicate that the issue originates from the theme manager when applying the Fluent UI theme, leading to a cyclic reference within the style resources.

Other Software

.

@Kaleemullah-Younas Kaleemullah-Younas added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams
Projects
None yet
Development

No branches or pull requests

1 participant