Hi,
I use the RadTreeView with static items - RadTreeViewItems are created in code. I need the tree items to stretch horizontally - so I set the ItemContainerStyle:
<telerik:RadTreeView.ItemContainerStyle> <Style TargetType="telerik:RadTreeViewItem"><Setter Property="HorizontalContentAlignment" Value="Stretch" /><Setter Property="Padding" Value="0" />
</Style></telerik:RadTreeView.ItemContainerStyle>Unfortunately the style is applied only the root items - like stated in the documentation:
- "When using ItemContainerStyle with static items, it will get applied only to the direct children of the RadTreeView - the top-level items. If you want their child items to have the same style you have to manually set the ItemContainerStyle property of their parents." (Documentation)
I do not understand how to "manually set the ItemContainerStyle property of their parents". Is there a working example how to use ItemContainerStyle with static items?
Beste regards,
Thomas
