I have a TreeView that is generated in code, and will look like this in the end:
<TreeView>
<TreeViewItem Header="X">
<TreeViewItem Header="Y">
<TreeViewItem Header="Z">
<StackPanel Orientation="Horizontal">
<TextBlock Width="100" Text="SomeText" /><TextBox Width="100" Text="TextInBox" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Width="100" Text="SomeText" /><TextBox Width="100" Text="TextInBox" />
</StackPanel>
</TreeViewItem>
</TreeViewItem>
</TreeViewItem>
</TreeView>
The problem is, that when you expand this tree fully and then mark the innermost TreeViewItem (in this case) "Z", the TextBlock is invisible until you click on one of the other items. What am I missing?
Thanks in advance.