New to Telerik UI for WPFStart a free 30-day trial

Window Icon

Updated on Sep 15, 2025

RadWindow allows you to display a custom icon in its top-left corner. To specify the icon you can use either the Icon or the IconTemplate properties.

Setting the Icon

You can display an icon in the RadWindow control's title bar, through its Icon property. This property is of type object and it allows you to set a value of any type.

RadWindow is declared and opened from the code behind by default. The only way to use the RadWindow as a visual element in XAML is when it represents the entire UserControl. To learn more about that read Use RadWindow as User Control article.

Setting the Icon property

C#
	RadWindow radWindow = new RadWindow();
	radWindow.Icon = new Image()
	{
	    Source = new BitmapImage(new Uri("../../Images/WindowIcon.png", UriKind.Relative))
	};

This will be the final result:

Rad Window Features Window Icon 01

Setting the IconTemplate

You can define a custom DataTemplate for the IconTemplate property that will be displayed as a title bar icon.

Setting the IconTemplate property in XAML

XAML
	<UserControl.Resources>
	    <DataTemplate x:Key="WindowIconTemplate">
	        <Image Source="/Images/WindowIcon.png" Stretch="None" />
	    </DataTemplate>
	</UserControl.Resources>

Setting the IconTemplate property in code-behind

C#
	RadWindow radWindow = new RadWindow();
	radWindow.IconTemplate = this.Resources["WindowIconTemplate"] as DataTemplate;

Setting the IconMargin

You can control the margin that is applied to the chosen icon, through the IconMargin property of RadWindow.

Setting the IconMargin property in XAML

XAML
	<telerik:RadWindow x:Name="radWindow" IconMargin="5 0 0 0"/>

Setting the IconMargin property in code-behind

C#
	this.radWindow.IconMargin = new Thickness(5, 0, 0, 0);