WPF TreeView设置所有节点默认展开
程序员文章站
2022-03-04 11:48:20
...
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="IsExpanded" Value="True"></Setter>
</Style>
</TreeView.ItemContainerStyle>