Skip to content

fix when the TreeListView expands too much content, scrolling to the … #3875

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

Merged
merged 1 commit into from
Jun 26, 2025

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