Skip to content

[Skia] SettingsExpander freezes app #17313

Closed

Description

@MartinZikmund

Current behavior

Loading SettingsExpander freezes app completely

Expected behavior

Should not happen

How to reproduce it (as minimally and precisely as possible)

  1. Check out https://github.com/MartinZikmund/uno-bug-repros/tree/bug/settings-expander-freeze
  2. Try to run the desktop target
  3. Notice it never loads

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    on Jun 26, 2024
  2. added
    area/skia ✏️
    and removed
    triage/untriaged
    on Jun 26, 2024
  3. Youssef1313 commented on Jun 27, 2024

    @Youssef1313
    Member

    This is a templated parent bug that causes SettingsCard.Header to be set to the SettingsCard itself, causing a cycle in the tree then we get into an infinite loop while walking the tree up.

    It all starts from ContentPresenter.SynchronizeContentTemplatedParent which sets the wrong TemplatedParent.

    To elaborate more:

    https://github.com/CommunityToolkit/Windows/blob/efbaf965029806fe29e02a6421af3c8f434e1460/components/SettingsControls/src/SettingsExpander/SettingsExpander.xaml#L87-L96

    Here, SettingsCard.Header is bound to TemplatedParent.Header.

    In this context, the correct TemplatedParent is SettingsExpander (NOT Expander)

    BUT, ContentPresenter is setting its Content templated parent to Expander incorrectly.

    This basically means that SettingsCard.TemplatedParent is becoming Expander.

    So, when we set SettingCard.Header to TemplatedParent.Header while the templated parent is Expander, we end up setting SettingCard.Header to the SettingCard itself.

    We either need to expose the FreezeTemplatedParent hack so that it's used in the implementation here: https://github.com/CommunityToolkit/Windows/blob/efbaf965029806fe29e02a6421af3c8f434e1460/components/SettingsControls/src/SettingsCard/SettingsCard.cs#L69, or we need to fix TemplatedParent.

  4. jeromelaban commented on Jun 27, 2024

    @jeromelaban
    Member

    This would likely be fixed by #1621

  5. github-actions commented on May 8, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.

  6. locked as resolved and limited conversation to collaborators on May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/skia ✏️difficulty/tbdkind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions