ItemsIndent works well with nodes containing children. But then on a leaf node it doesn't. Is there a way to move the leaf node further to the left? See image attached for depiction.
<
UserControl
x:Class
=
"MyApp.ToolboxControl"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
>
<
UserControl.Resources
>
<
DataTemplate
x:Key
=
"Level1"
>
<
Grid
Margin
=
"0"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Image
Grid.Column
=
"0"
Source
=
"{Binding ImageUrl}"
Stretch
=
"None"
/>
<
TextBlock
Grid.Column
=
"1"
Text
=
"{Binding Name}"
/>
</
Grid
>
</
DataTemplate
>
<
HierarchicalDataTemplate
x:Key
=
"Level2"
ItemsSource
=
"{Binding Items}"
ItemTemplate
=
"{StaticResource Level1}"
>
<
Grid
Margin
=
"0"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Image
Grid.Column
=
"0"
Source
=
"{Binding ImageUrl}"
Stretch
=
"None"
/>
<
TextBlock
Grid.Column
=
"1"
Text
=
"{Binding Name}"
/>
</
Grid
>
</
HierarchicalDataTemplate
>
<
HierarchicalDataTemplate
x:Key
=
"Level3"
ItemsSource
=
"{Binding Items}"
ItemTemplate
=
"{StaticResource Level2}"
>
<
Grid
Margin
=
"0"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Image
Grid.Column
=
"0"
Source
=
"{Binding ImageUrl}"
Stretch
=
"None"
/>
<
TextBlock
Grid.Column
=
"1"
Text
=
"{Binding Name}"
/>
</
Grid
>
</
HierarchicalDataTemplate
>
</
UserControl.Resources
>
<
Grid
>
<
telerik:RadTreeView
ItemsSource
=
"{Binding Items}"
ItemTemplate
=
"{StaticResource Level3}"
ItemsIndent
=
"10"
/>
</
Grid
>
</
UserControl
>