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
When using TreeView's item template and setting TreeViewItem.IsExpanded to True in XAML, repopulating (clearing item and then adding new items) the tree a few times collapses all items.
When binding TreeViewItem.IsExpanded to a read-only property set to True, repopulating the tree randomly collapses/expands the items.
1.5 doesn't have this issue.
usakgb
changed the title
TreeViewItem.IsExpanded in 1.6 behaves inconsistently when repopulating the tree
TreeViewItem.IsExpanded in 1.6 behaves inconsistently when repopulating the TreeView
Jan 15, 2025
Describe the bug
When using TreeView's item template and setting TreeViewItem.IsExpanded to True in XAML, repopulating (clearing item and then adding new items) the tree a few times collapses all items.
When binding TreeViewItem.IsExpanded to a read-only property set to True, repopulating the tree randomly collapses/expands the items.
1.5 doesn't have this issue.
Steps to reproduce the bug
A project that demonstrates the bug: https://github.com/usakgb/WinUITreeViewBug
Expected behavior
All items to be expanded at all times.
Screenshots
NuGet package version
Windows App SDK 1.6.3: 1.6.241114003
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: