<TreeView x:Name="xPolicyTemplateTreeView" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsSource="{Binding PolicyTemplateTree}">
<TreeView.ItemContainerStyle>
<Style TargetType="TreeViewItem">
<Setter Property="IsExpanded" Value="True" />
</Style>
</TreeView.ItemContainerStyle>
<TreeView.ItemTemplate>
<!--Root Note (Dummy Root)-->
<HierarchicalDataTemplate DataType="{x:Type CDTTemplateMgr:PolicyTemplateNode}" ItemsSource="{Binding ChildNodes, UpdateSourceTrigger=PropertyChanged}">
<Grid Tag="{Binding DataContext, ElementName=xMainGrid}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="10, 0, 10, 0" />
</StackPanel>
<Grid.ContextMenu>
<ContextMenu>
<MenuItem Header="템플릿 신규 생성" Command="{Binding PlacementTarget.Tag.CreateTempleate, RelativeSource={RelativeSource AncestorType=ContextMenu}}"/>
<MenuItem Header="템플릿 복사 후 생성" Command="{Binding ElementName=xMainGrid, Path=CreateCopyTempleate}" CommandParameter="{Binding ElementName=xPolicyTemplateTreeView, Path=SelectedItem}"/>
<Separator />
<MenuItem Header="템플릿 수정" Command="{Binding ElementName=xMainGrid, Path=ModifyTempleate}" CommandParameter="{Binding ElementName=xPolicyTemplateTreeView, Path=SelectedItem}"/>
<MenuItem Header="템플릿 삭제" Command="{Binding ElementName=xMainGrid, Path=DeleteTempleate}" CommandParameter="{Binding ElementName=xPolicyTemplateTreeView, Path=SelectedItem}"/>
</ContextMenu>
</Grid.ContextMenu>
</Grid>
<!--2 Depth Note-->
<HierarchicalDataTemplate.ItemTemplate>
.
.
생략..
.
.