Flyout.FlyoutButtons Property
Gets or sets buttons displayed within the current Flyout.
Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI
Assembly: DevExpress.XtraBars.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Nullable<MessageBoxButtons> | null | A MessageBoxButtons enumerator value that specifies the buttons displayed within the current Flyout. |
Remarks
Flyouts can display buttons in two ways:
- via the FlyoutButtons property - allows you to add standard button sets (OK, OKCancel etc);
- via the FlyoutAction.Commands property of the assigned FlyoutAction - allows you to add both standard and custom buttons (see the How To: Create a Message Box Flyout With User Control topic).
Note
If both you specify both of these properties, two button sets will be displayed simultaneosly.
If you used the WindowsUIView.ActivateContainer method to display a Flyout, handle the WindowsUIView.FlyoutHidden event and get the FlyoutResultEventArgs.Result property value to determine which button an end-user has clicked. The WindowsUIView.ShowFlyoutDialog method returns a DialogResult value so you can get the clicked button at once.