I have been trying to figure out how to create a more customzed HierarchicalDataTemplate.
I am using the following template:
I am using the following template:
So, I was hoping to have a delete icon that maintained a right aligned position within a TreeView.<
telerik:HierarchicalDataTemplate
x:Key
=
"TreeItemTemplate"
telerik:ContainerBinding.ContainerBindings
=
"{StaticResource TreeBinder}"
>
<
Grid
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
Height
=
"Auto"
Width
=
"Auto"
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"18"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"18"
/>
</
Grid.ColumnDefinitions
>
<
Image
Grid.Column
=
"0"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Source
=
"{Binding ImageSrc}"
Margin
=
"4,0,4,0"
Height
=
"16"
Width
=
"16"
/>
<
TextBlock
Grid.Column
=
"1"
Text
=
"{Binding Name}"
/>
<
Image
Grid.Column
=
"2"
Source
=
"Resources/del_16.png"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Height
=
"16"
Width
=
"16"
/>
</
Grid
>
</
telerik:HierarchicalDataTemplate
>
So far this has not worked.. :(
Any ideas would be welcome..
Kurt