Questions tagged [treeviewitem]

A tree view item is an element or node of a tree view.

A tree view item is an element or node of a tree view. If the tree view item has child nodes, the tree view item can be expanded or collapsed. From a tree view item, often the user will have access to more detailed information relating to the corresponding node on the tree view.

354 questions
64
votes
9 answers

Highlight whole TreeViewItem line in WPF

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.microsoft.com/Forums/en-US/wpf/thread/b04f73e2-0b10-4d97-a6da-64df2e30c21d/ But…
alex2k8
  • 42,496
  • 57
  • 170
  • 221
25
votes
3 answers

Context Menu for XAML Treeviewitem (Distinguished by different attributes)

In XAML, how do you define a context menu for treeviewitems that are distinguished by different attributes?
Mr. T.
  • 1,335
  • 4
  • 14
  • 24
23
votes
9 answers

Why is the TreeViewItem's MouseDoubleClick event being raised multiple times per double click?

XAML