Click to See Complete Forum and Search --> : Stretch TreeView Items


pymWPF
August 3rd, 2009, 04:01 AM
Hello,

I have a TreeView on a Grid and I am trying to make the Items of the tree stretched all over the grid's width.

<Grid>
<TreeView x:Name="tree">
<Button>Button 1</Button>
<Button>Button 2</Button>
<Button>Button 3</Button>
<Button>Button 4</Button>
</TreeView>
</Grid>


I just can't make that happen unless I set each item's size myself.
How can I make the panel's layout system work on the tree's items?

Thanks!