# Center the Header of the RadWindow

In order to allow the content in the header to be centered, you can set a UIElement (for example TextBlock) with HorizontalAlignment="Center" as the **Header** of the RadWindow. This is demonstrated in **Example 1**.

**Example 1: Centering the Header of the RadWindow**

```XAML
<telerik:RadWindow Width="380">
    <telerik:RadWindow.Header>
        <TextBlock Text="My Header" HorizontalAlignment="Center" />
    </telerik:RadWindow.Header>
</telerik:RadWindow>
```

> caption Result from example 1 in the Office2016 theme

![RadWindow with Centered Header](https://www.telerik.com/products/wpf/documentation/assets/8bcf401eee637d34e62ee41dd768132b/radwindow_how_to_center_the_header_01.png)

> tip Alternatively, you can also place the centered UIElement in the **HeaderTemplate** of the RadWindow.

## See Also

* [Window Header](https://www.telerik.com/products/wpf/documentation/controls/radwindow/features/window-header)

* [Close the RadWindow Through its Content](https://www.telerik.com/products/wpf/documentation/controls/radwindow/how-to/close-the-radwidnow-through-its-content)

* [Hide the Maximize and Minimize buttons](https://www.telerik.com/products/wpf/documentation/controls/radwindow/how-to/hide-minimize-maximize-buttons)
