Intersoft ClientUI Documentation
How-to: Open a UXDialogBox in Modeless Mode
See Also Send Feedback
Intersoft ClientUI 7 > ClientUI Fundamentals > Window and Dialog Boxes Overview > Window and Dialog Boxes How-to Topics > How-to: Open a UXDialogBox in Modeless Mode

Glossary Item Box

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

©2012. All Rights Reserved.