Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147023 | Aug 29,2019 04:37 AM UTC | Aug 30,2019 07:06 PM UTC | WPF | 1 |
![]() |
Tags: TreeViewAdv |
Query |
Details | |
When I set the selected item via the binding to SelectedTreeItem, in some cases it keeps other items selected as well. I've tired clearing the selected items collection but it seems to keep multiple items selected. |
You can resolve this issue by modify the code with below code snippet.
Please refer the below modified sample for your reference.
| |
The style when I set the selected item via two way binding is different than when I select it from the TreeViewAdv control. I need these to be the same. |
We can able to see the reported problem in our end. We suspect, when select the item using the two way binding the selected background value is taken from the default style. You can resolve this issue by overriding the control template in App.Xaml file. Otherwise you can customize the item style by setting the item container style. Please refer the below UG and kb documentations for your reference.
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.