Skip to content

Conversation

corvinsz
Copy link
Member

fixes #3890

This fixes a runtime binding error.
The exact same binding I fixed in this PR is also used a few lines above, however that binding does not throw a binding error (I'm honestly not sure why 😆 ):
https://github.com/corvinsz/MaterialDesignInXamlToolkit/blob/6b115b0cb43fa18142c78429f30ec7dcc7585552/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Expander.xaml?plain=1#L310

Copy link
Member

@Keboo Keboo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My best guess on the difference in behavior is because the second element is getting hidden with its opacity set to 0. But that is more a guess than anything.

@Keboo Keboo enabled auto-merge (squash) September 26, 2025 06:10
@Keboo Keboo added this to the 5.3.0 milestone Sep 26, 2025
corvinsz and others added 2 commits September 27, 2025 15:57
Changes `ContentSite` border to be unnamed and binds `ExpandDirection` directly from the `TemplateBinding`.
@Keboo Keboo merged commit e5d0c3d into MaterialDesignInXAML:master Sep 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RelativeSource FindAncestor, AncestorType='System.Windows.Controls.Expander', AncestorLevel='1'
2 participants