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

Closing

Updated on Sep 15, 2025

The RadWindow can be closed by either clicking on its 'Close' button at the top-right corner or by calling the Close() method of the RadWindow instance.

WPF RadWindow Close Button

Example 1: Closing a RadWindow

C#
	RadWindow radWindow = new RadWindow();
	radWindow.Show();
	//...
	radWindow.Close();

hen the RadWindow gets closed, the Closed event is raised. More about events can be found here.

Prevent Closing

To disable the closing of the RadWindow via the UI you can set the CanClose property to False.

Example 2: Setting the CanClose property

C#
	RadWindow radWindow = new RadWindow();
	radWindow.CanClose = false;

WPF RadWindow Hidden Close Button

Alternatively, you can also handle the PreviewClosed event and set the Cancel property of the event arguments to True.

Example 3: Canceling the PreviewClosed event

C#
	private void RadWindow_PreviewClosed(object sender, WindowPreviewClosedEventArgs e)
	{
		e.Cancel = true;
	}

See Also

In this article
Prevent ClosingSee Also
Not finding the help you need?
Contact Support