# Styling RadWindow

To customize the default look and feel of the RadWindow control you can extract its Style and modify its ControlTemplate.

You can see how you can extract the styles and templates of a Telerik control in the [Editing Control Templates](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-editing-control-templates) article. Once you have the template, you can modify it as desired, but it should be noted that heavy modifications may not work properly because the RadWindow control relies on some of the elements inside the template.

To re-apply the customized style, you can set the Style property of RadWindow.

**Example 1: Define a Style with customized ControlTemplate**

```XAML

<Style x:Key="CustomRadWindowStyle" TargetType="telerik:RadWindow">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="telerik:RadWindow">
                
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>
```

**Example 2: Setting the Style property of RadWindow**

```C#
RadWindow radWindow = new RadWindow();
radWindow.Style = (Style)this.Resources["CustomRadWindowStyle"];
```

> tip If you remove the x:Key setting of the style, it will get applied implicitly to all RadWindow controls in the scope where the style is defined. In this case, you don't need to set the Style property explicitly. For RadWindow, it is recommend to define such implicit style in the App.xaml Resources.

You can also use the Template property directly instead of the Style property.

**Example 3: Define a Style with customized ControlTemplate**

```XAML
<ControlTemplate x:Key="CustomRadWindowTemplate" TargetType="telerik:RadWindow">
    
</ControlTemplate>
```

**Example 4: Setting the Style property of RadWindow**

```C#
RadWindow radWindow = new RadWindow();
radWindow.Template = (ControlTemplate)this.Resources["CustomRadWindowTemplate"];
```

## See Also

* [How to Change Header Background](https://www.telerik.com/products/wpf/documentation/knowledge-base/kb-window-change-header-background)

* [Styling the Predefined Windows](https://www.telerik.com/products/wpf/documentation/controls/radwindow/styles-and-templates/styling-the-predefined-windows)

* [Setting a Theme](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview)

* [Xaml vs. NoXaml](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/xaml-vs-noxaml)
