Intersoft ClientUI Documentation
How-to: Open a UXDialogBox in Modeless Mode

This example shows how to open a UXDialogBox in modeless mode.

Example

Description

You use a UXDialogBox to represent the content that you want to show in modal mode. By default, UXDialogBox is automatically set to use modal mode. To show the dialog box in modeless mode, set the DialogBoxMode property to Modeless.

The following example shows how to open a window in modeless mode.

Code

C#
Copy Code
private void UXButton1_Click(object sender, RoutedEventArgs e)
{
    EditDialogBox dialogBox = new EditDialogBox();
    dialogBox.DialogBoxMode = Intersoft.Client.UI.Aqua.UXDesktop.DialogBoxMode.Modeless;
    dialogBox.ShowDialog(
        
        // show dialog box in standalone mode
        null,

        // callback handler for the close event
        (dialogResult) =>
        {
            if (dialogResult == Intersoft.Client.Framework.DialogResult.OK)
            {
                MessageBox.Show("The dialog box result is OK");
            }
        });
}

 

See Also

Concepts

Other Resources