Skip to content
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

TreeListView: ArgumentOutOfRange expanding items via the data context #3572

Closed
tenatus opened this issue May 23, 2024 · 1 comment · Fixed by #3574
Closed

TreeListView: ArgumentOutOfRange expanding items via the data context #3572

tenatus opened this issue May 23, 2024 · 1 comment · Fixed by #3574
Labels
Milestone

Comments

@tenatus
Copy link

tenatus commented May 23, 2024

Bug explanation

The TreeListView is a great replacement for WPF's TreeView but I discovered that there can be a serious issue (application crash) when expanding nodes programmatically (using a bound view model property).

I added this functionality to the demo application as an example of the issue: master...tenatus:MaterialDesignInXamlToolkit:treelistbug

To reproduce:

  1. Run the demo app
  2. Select the Tree page
  3. Click the new 'expand all items' button for the multi-select tree view
  4. BUG: The application crashes (ArgumentOutOfRangeException)

Version

5.0

@tenatus tenatus added bug evaluation required Items is pending review or evaluation by the team labels May 23, 2024
@Keboo Keboo removed the evaluation required Items is pending review or evaluation by the team label May 27, 2024
@Keboo Keboo added this to the 5.1.0 milestone May 27, 2024
Keboo added a commit to Keboo/MaterialDesignInXamlToolkit that referenced this issue May 27, 2024
This occurs when IsExpanded is set on a virtualized container that has been removed.

Fixes MaterialDesignInXAML#3572
@Keboo
Copy link
Member

Keboo commented May 27, 2024

Thank you for the easy repro example. Put in a fix for it. It will be in the next nightly release.

Keboo added a commit that referenced this issue May 27, 2024
This occurs when IsExpanded is set on a virtualized container that has been removed.

Fixes #3572
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants