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

Use SetCurrentValue() in TreeViewItem #10395

Merged
merged 1 commit into from
Feb 19, 2023

Conversation

robloo
Copy link
Contributor

@robloo robloo commented Feb 19, 2023

What does the pull request do?

Continuation of #10137 based on the comment #10137 (review).

What is the current behavior?

TreeViewItem sets IsExpanded internally which will overwrite any bindings.

What is the updated/expected behavior with this PR?

TreeViewItem still sets IsExpanded internally but used SetCurrentValue() so bindings aren't destroyed.

How was the solution implemented (if it's not obvious)?

Obvious.

Checklist

Breaking changes

None

Obsoletions / Deprecations

None

Fixed issues

Part of #9944 and #9985/#10324

@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 11.0.999-cibuild0030242-beta. (feed url: https://pkgs.dev.azure.com/AvaloniaUI/AvaloniaUI/_packaging/avalonia-all/nuget/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 merged commit 4498604 into AvaloniaUI:master Feb 19, 2023
@robloo robloo deleted the treeviewitem-setcurrentvalue branch February 19, 2023 01:31
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.

3 participants