Edit this page

Closing

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.

C#

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

VB.NET

Dim radWindow As New RadWindow()
radWindow.Show()
'...'
radWindow.Close()

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

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

The only scenario, where you can add content to the RadWindow at design-time, is when the RadWindow represents an entire user control. To learn more about that read here.

C#

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

VB.NET

Dim radWindow As New RadWindow()
radWindow.CanClose = False

See Also