When i rebuild a WPF treeview i want to set the selected item like before the rebuild. Therefore I set the property IsSelected to true and call the method focus() for the treeviewitem. But the background of the selected item is only a pale gray color. How can achieve the standard blue background programmatically. When I click the item with the mouse the item background is blue again.
Asked
Active
Viewed 3,049 times
1 Answers
0
You should use ContainerFromItem
For more informations access this link :

Community
- 1
- 1

Dragos Stoica
- 1,753
- 1
- 21
- 42