You can apply an style to do this:
<TreeView ...>
<TreeView.Resources>
<Style TargetType="TreeViewItem">
<Setter Property="IsExpanded" Value="{Binding IsOpen, Mode=TwoWay}" />
</Style>
</TreeView.Resources>
</TreeView>
http://weblogs.asp.net/marianor/