# Hide the Maximize and Minimize buttons

If you want to hide the Minimize and Maximize buttons you have two options:

* [Set the HideMinimizeButton and HideMaximizeButton properties](https://www.telerik.com/products/wpf/documentation/controls/radwindow/how-to/hide-minimize-maximize-buttons#set-the-hideminimizebutton-and-hidemaximizebutton-properties)

* [Use the ResizeMode property](https://www.telerik.com/products/wpf/documentation/controls/radwindow/how-to/hide-minimize-maximize-buttons#use-the-resizemode-property)

## Set the HideMinimizeButton and HideMaximizeButton properties

The easiest way to hide the minimize or maximize buttons is to set the **HideMinimizeButton** and **HideMaximizeButton** properties respectively. This is demonstrated in **Example 1**.

**Example 1: Hiding the Minimize and Maximize Buttons**

```XAML
<telerik:RadWindow 
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
	HideMaximizeButton="True" 
	HideMinimizeButton="True"
		Header="MainWindow">
    <TextBlock Text="My content" HorizontalAlignment="Center" />
</telerik:RadWindow>
```

> caption Result from example 1 in the Office2016 theme

![RadWindow without Maximize and Minimize buttons](https://www.telerik.com/products/wpf/documentation/assets/75e33a0c642773b91d59cbcc12cc4fa8/radwindow_hide_maximize_and_minimize.png)

## Use the ResizeMode property

By setting the **ResizeMode** property to **CanMinimize** only the **Minimize** button will be visible. The maximize button will be hidden and the resizing will be disabled. This is demonstrated in **Example 2**.

**Example 2: Showing only the Minimize and Close Buttons**

```XAML
<telerik:RadWindow 
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    	        ResizeMode="CanMinimize"
		Header="MainWindow">
    <TextBlock Text="My content" HorizontalAlignment="Center" />
</telerik:RadWindow>
```

> caption Result from example 2 in the Office2016 theme

![RadWindow with just Minimize button](https://www.telerik.com/products/wpf/documentation/assets/280da074222ef94482d97b25a9f284a2/radwindow_show_only_minimize.png)

By setting the **ResizeMode** property to **NoResize** both the Minimize and the Maximize buttons will be hidden, the resizing will also be disabled. This is demonstrated in **Example 3**.

**Example 3: Showing only the Close button**

```XAML
<telerik:RadWindow 
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        ResizeMode="NoResize"
		Header="MainWindow">
    <TextBlock Text="My content" HorizontalAlignment="Center" />
</telerik:RadWindow>
```

> caption Result from example 3 in the Office2016 theme

![RadWindow with just the Close button](https://www.telerik.com/products/wpf/documentation/assets/75e33a0c642773b91d59cbcc12cc4fa8/radwindow_disable_minimize_and_maximize.png)

To learn more about resizing the **RadWindow** read [here](https://www.telerik.com/products/wpf/documentation/controls/radwindow/features/resizing).

## See Also

* [Minimizing/Maximizing](https://www.telerik.com/products/wpf/documentation/controls/radwindow/features/minimizingmaximazing)

* [Prevent Dragging Off the Screen](https://www.telerik.com/products/wpf/documentation/controls/radwindow/how-to/prevent-dragging-off-the-screen)

* [Center the Header of the RadWindow](https://www.telerik.com/products/wpf/documentation/controls/radwindow/how-to/center-the-header-of-the-content)
