16 lines
823 B
XML
16 lines
823 B
XML
<UserControl x:Class="HandyControlDemo.UserControl.TreeViewDemoCtl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl"
|
|
Background="{DynamicResource RegionBrush}">
|
|
<controls:TransitioningContentControl>
|
|
<TreeView Width="200" Margin="32" ItemsSource="{Binding DataList}">
|
|
<TreeView.ItemTemplate>
|
|
<HierarchicalDataTemplate ItemsSource="{Binding DataList}">
|
|
<TextBlock Text="{Binding Name}"/>
|
|
</HierarchicalDataTemplate>
|
|
</TreeView.ItemTemplate>
|
|
</TreeView>
|
|
</controls:TransitioningContentControl>
|
|
</UserControl>
|