New to Telerik UI for WPF? Download free 30-day trial

Get Content of RadTreeViewItem to Fill Full Size of Container


Product Version 2019.2.618
Product RadTreeView for WPF


How to stretch RadTreeViewItem content horizontally in order to fill the full size of the container.


Set the HorizontalContentAlignment property of RadTreeViewItem to Stretch.

To apply this globally to all RadTreeViewItems in the treeview, use the ItemContainerStyle property.

    <Style TargetType="telerik:RadTreeViewItem"> 
        <Setter Property="HorizontalContentAlignment" Value="Stretch" /> 
To apply it per item set the property directly on the RadTreeViewItem.

<telerik:RadTreeViewItem HorizontalContentAlignment="Stretch" /> 
In this article