-
Notifications
You must be signed in to change notification settings - Fork 710
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
TreeView: Set IsExpanded when last child has been removed #2449
TreeView: Set IsExpanded when last child has been removed #2449
Conversation
/azp run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Azure Pipelines successfully started running 1 pipeline(s). |
My WinUI build system is currently broken so I can't check myself. What happens when the items source for a treeview item is changed and the item was previously expanded? Does the IsExpanded state change to collapsed in this situation? |
In what scenario exactly? If you remove and readd the collection, I don't think we could restore the IsExpanded state anyway. But If you look at the tests, in cases where the list changes, I think in most cases the IsExpanded state won't change. |
Managed to build WinUI and the test app again, seems fine to me. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
* Add test for IsExpanded not being set to false when removing last child * Fix issue with setting IsExpanded not to false when removing last child * Fix test failures * Fix test
🎉 Handy links: |
Description
Add code that set's the IsExpanded of a node to false when it's last child has been removed.
Motivation and Context
Fixes #2332
How Has This Been Tested?
Add new API test
Screenshots (if appropriate):