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

Fix TreeView root node ItemsSource syncing #865

Merged
merged 8 commits into from
Jun 14, 2019
Merged

Conversation

kaiguo
Copy link
Contributor

@kaiguo kaiguo commented Jun 13, 2019

Fixes #631

TreeView root node and the rest of other nodes use separate logics to handle ItemsSource&TreeViewNode syncing, which shouldn't be necessary, since root node is no different from other TreeViewNodes. Deleted the duplicated code and let TreeViewNode handle the syncing.

@kaiguo kaiguo requested a review from RBrid June 13, 2019 05:00
@kaiguo kaiguo requested a review from a team as a code owner June 13, 2019 05:00
@kaiguo kaiguo self-assigned this Jun 13, 2019
@@ -2578,6 +2578,38 @@ public void TreeViewNodeInMarkupTest()
}
}

[TestMethod]
[TestProperty("TestSuite", "B")]
public void TreeViewRootNodeBindingTest()
Copy link
Contributor Author

@kaiguo kaiguo Jun 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RBrid there are some async updates when ItemsSource changes, I feel it's easier to do it in interaction test compare to API test (especially with all your helper functions in place to repro the issue 😊).

@kaiguo kaiguo added the auto merge This PR will be merged once all checks pass label Jun 14, 2019
@kaiguo kaiguo merged commit 3f8b33f into master Jun 14, 2019
@kaiguo kaiguo deleted the user/kaiguo/treeview631 branch June 14, 2019 18:04
@jevansaks jevansaks added the release note PR that we want to call out in the next release summary label Jun 14, 2019
@msft-github-bot
Copy link
Collaborator

🎉Microsoft.UI.Xaml v2.2.190702001-prerelease has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TreeView auto merge This PR will be merged once all checks pass release note PR that we want to call out in the next release summary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception thrown when new item is added to ObservableCollection ItemsSource of TreeView
4 participants