Re: Combobox in TreeViewItem
Definitely! But in order to achieve this, you need make the combobox part of the TreeViewItem's header, instead of adding it to the child items.
Originally Posted by levik
In order to display the label string and the combobox side-by-side, you need to wrap both in an appropriate panel (for example, a stack panel).
Here's your updated XAML:
A real-world solution would rather use a ControlTemplate for applying this to all items at once - this is just to show how you can generally replace the item's header by any UIElement.
<TreeViewItem Header="bbb1" />
<TreeViewItem Header="bbb2" />
<TreeViewItem Header="ccc" />