Rediscovering the Obvious

…stumbling in the footsteps of greatness

Automatically expanding a WPF grid

without comments

 Took me a while to figure it out, so here it is.

        <TreeView Name=”_orgSelectionTree” >
            <TreeView.ItemContainerStyle>
                <Style>
                    <Setter Property=”TreeViewItem.IsExpanded” Value=”True”/>
                </Style>
            </TreeView.ItemContainerStyle>
        </TreeView>

Written by erwilleke

April 23rd, 2007 at 3:51 pm

Posted in Uncategorized

Leave a Reply