23 lines
1.1 KiB
XML
23 lines
1.1 KiB
XML
<UserControl x:Class="CtrEditor.Controls.ObjectHierarchyView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:controls="clr-namespace:CtrEditor.Controls"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<TreeView x:Name="ObjectsTreeView" ItemsSource="{Binding RootNodes}"
|
|
SelectedItemChanged="TreeView_SelectedItemChanged">
|
|
<TreeView.ItemTemplate>
|
|
<HierarchicalDataTemplate ItemsSource="{Binding Children}">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="{Binding Name}" />
|
|
<TextBlock Text="{Binding RelationshipType}" Margin="5,0,0,0" Foreground="Gray"
|
|
FontStyle="Italic" />
|
|
</StackPanel>
|
|
</HierarchicalDataTemplate>
|
|
</TreeView.ItemTemplate>
|
|
</TreeView>
|
|
</Grid>
|
|
</UserControl>
|