In order to apply the correct margin you need to implement a LevelToMargin converter
I have attached the xaml and xaml.cs files I used. Please check them. This is the result when RightToLeft flow direction is set to the TreeView and LevelToMargin is applied:
Hi Menna,
I have reproduced the behavior without the usage of TreeView ItemTemplate. I have used this setup:
<telerikDataControls:RadTreeView x:Name="treeView" FlowDirection="RightToLeft" Grid.Row="2" ItemsSource="{Binding Source}"> <telerikDataControls:TreeViewDescriptor DisplayMemberPath="Name" ItemsSourcePath="Cities" TargetType="{x:Type local:Country}"/> <telerikDataControls:TreeViewDescriptor DisplayMemberPath="Name" TargetType="{x:Type local:City}"/> </telerikDataControls:RadTreeView>
I have attached the xaml and xaml.cs files I used. Please check them.
This is the result when RightToLeft flow direction is set to the TreeView and LevelToMargin is applied: