New to Telerik UI for WPF? Start a free 30-day trial
Remove Indenting From IconTemplate in RadNavigationView
Updated on Sep 15, 2025
Environment
| Product Version | 2023.2.718 |
| Product | RadNavigationView for WPF |
Description
How to remove indenting from IconTemplate of the RadNavigationView element.
Solution 1
-
Extract the ControlTemplate of
RadNavigationViewItem. -
In the
ControlTemplatefind theGridpanel withx:Nameset to "ItemContentGrid" and change theWidthof the firstColumnDefinition. -
Apply the modified template to the
RadNavigationViewItemelements.
Solution 2
Use the ChildrenOfType extension method to get the Grid panel with x:Name set to "ItemContentGrid" and change the Width of the first ColumnDefinition .
C#
private void RadNavigationViewItem_Loaded(object sender, RoutedEventArgs e)
{
var itemContainer = (RadNavigationViewItem)sender;
var panel = itemContainer.ChildrenOfType<Grid>().FirstOrDefault(x => x.Name == "ItemContentGrid");
panel.ColumnDefinitions[0].Width = new GridLength(0);
}