Edit this page

Modal Windows

When you want to display the RadWindow you have two options - to display it as a window or as a modal dialog window.

In the first case, the UI behind the RadWindow is still active. To open it as a normal window you have to call the Show() method of the RadWindow instance.

C#

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

VB.NET

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

In the second case the UI behind the RadWindow gets inactive and cannot be used until the RadWindow is closed. To open it as a modal dialog window you have to call the ShowDialog() method of the RadWindow instance.

C#

RadWindow radWindow = new RadWindow();
radWindow.ShowDialog();

VB.NET

Dim radWindow As New RadWindow()
radWindow.ShowDialog()

When opened as a modal dialog the RadWindow covers the UI behind it with a background. You can modify the color of this background via the ModalBackground property of the RadWindow.

See Also