Skip to content

Conversation

@MohammadHadi2031
Copy link
Contributor

@MohammadHadi2031 MohammadHadi2031 commented Jun 22, 2025

…top will shrink the content #3640

Hi Keboo. I think we can fix this with easy trick. I get IsExpanded from itemsSource.GetIsExpanded(index) to PrepareTreeListViewItem OnApplyTemplate. Always PrepareTreeListViewItem is called twice from PrepareContainerForItemOverride and OnApplyTemplate so we can remove PrepareContainerForItemOverride in TreeListView but that is optional. Calling PrepareTreeListViewItem once was not the solution since ItemExpandedChanged was called multiple times causes items to be added twice so it should be changed to have no effect when IsExpanded was not changed actually.

@Keboo Keboo self-requested a review June 23, 2025 05:46
@Keboo Keboo added this to the 5.3.0 milestone Jun 26, 2025
@Keboo Keboo merged commit bbdee06 into MaterialDesignInXAML:master Jun 26, 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.

2 participants