Add IsExpanded property to ElementViewModel.

This commit is contained in:
Daniel Kraus
2015-08-12 22:29:31 +02:00
parent 2bb0452a87
commit a9d0e8ee7e
3 changed files with 14 additions and 2 deletions

View File

@ -95,7 +95,7 @@
<TreeView ItemsSource="{Binding Elements}">
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<!--<Setter Property="IsExpanded" Value="True" />-->
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
<Setter Property="ToolTip" Value="{Binding ToolTip}" />
</Style>