You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area/skia ✏️Categorizes an issue or PR as relevant to Skiadifficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/bugSomething isn't working
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.
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.
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.
area/skia ✏️Categorizes an issue or PR as relevant to Skiadifficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/bugSomething isn't working
Activity
Repro for unoplatform/uno#17313
Youssef1313 commentedon Jun 27, 2024
This is a templated parent bug that causes
SettingsCard.Headerto be set to theSettingsCarditself, causing a cycle in the tree then we get into an infinite loop while walking the tree up.It all starts from
ContentPresenter.SynchronizeContentTemplatedParentwhich sets the wrong TemplatedParent.To elaborate more:
https://github.com/CommunityToolkit/Windows/blob/efbaf965029806fe29e02a6421af3c8f434e1460/components/SettingsControls/src/SettingsExpander/SettingsExpander.xaml#L87-L96
Here,
SettingsCard.Headeris bound toTemplatedParent.Header.In this context, the correct
TemplatedParentisSettingsExpander(NOTExpander)BUT,
ContentPresenteris setting itsContenttemplated parent toExpanderincorrectly.This basically means that
SettingsCard.TemplatedParentis becomingExpander.So, when we set
SettingCard.HeadertoTemplatedParent.Headerwhile the templated parent isExpander, we end up settingSettingCard.Headerto theSettingCarditself.We either need to expose the
FreezeTemplatedParenthack 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 fixTemplatedParent.jeromelaban commentedon Jun 27, 2024
This would likely be fixed by #1621
github-actions commentedon May 8, 2026
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.