Highlight whole TreeViewItem line in WPF

前端 未结 9 733
暗喜
暗喜 2020-11-30 17:48

If I set TreeViewItem Background it highlights the header only. How can I highlight the whole line?

I have found a post almost solving a problem http://social.msdn.

9条回答
  •  孤城傲影
    2020-11-30 18:34

    I managed this by copying the ItemContainerStyle out using blend, giving a name to the grid that the item is placed in and then setting the background of the grid.

提交回复
热议问题