树视图复选框WPF
在没有ListView和TreeListView的XAML中这是如何实现的树视图复选框WPF,wpf,xaml,checkbox,treeview,Wpf,Xaml,Checkbox,Treeview,在没有ListView和TreeListView的XAML中这是如何实现的 <TreeView> <TreeView.ItemContainerStyle> <Style TargetType='TreeViewItem'> <Setter Property='Template'> <Setter.Value> <
<TreeView>
<TreeView.ItemContainerStyle>
<Style
TargetType='TreeViewItem'>
<Setter
Property='Template'>
<Setter.Value>
<ControlTemplate
TargetType='TreeViewItem'>
<StackPanel
Orientation='Horizontal'>
<CheckBox
Width='40'
Content='A' />
<CheckBox
Width='40'
Content='B' />
<!--
the rest of the TreeViewItem template here
http://msdn.microsoft.com/en-us/library/ms788727.aspx
-->
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</TreeView.ItemContainerStyle>