Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FlyoutResultEventArgs.Result Property

Gets or sets the returned result after a Flyout is closed.

Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public DialogResult Result { get; set; }

#Property Value

Type Description
DialogResult

A DialogResult value that specifies the returned result after a Flyout is closed.

#Remarks

You can use the Result property when handling the WindowsUIView.FlyoutHidden event to get the Flyout button an end-user has clicked.

private void windowsUIView1_FlyoutHidden(object sender, FlyoutResultEventArgs e) {
     if (e.Result == System.Windows.Forms.DialogResult.OK) . . .;
     else . . .;
 }

Use this approach for non-modal message box Flyouts displayed via the WindowsUIView.ActivateContainer method (see How To: Create a Message Box Flyout With User Control). To display a modal message box Flyout, use the WindowsUIView.ShowFlyoutDialog method that returns a DialogResult value.

See Also