Skip to main content

WindowsUIView.FlyoutProperties Property

Contains default flyout settings applied to all flyouts within the WindowsUIView.

Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly: DevExpress.XtraBars.v25.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[XtraSerializableProperty(XtraSerializationVisibility.Content)]
public IFlyoutProperties FlyoutProperties { get; }

Property Value

Type Description
IFlyoutProperties

Default flyout settings.

Remarks

Use the WindowsUIView.FlyoutProperties property to customize default flyout settings. To override these settings for individual flyouts, use the Flyout.Properties property.

The following code snippet customizes global and instance-specific flyout settings in a WindowsUIView.

Flyout message;

public Form1()
{
    InitializeComponent();

    // Customize global flyout appearance for all flyouts in the WindowsUIView.
    windowsUIView1.FlyoutProperties.AppearanceCaption.ForeColor = Color.Red;
    windowsUIView1.FlyoutProperties.Appearance.BackColor = Color.Green;

    // Create a new Flyout instance.
    message = new Flyout();

    // Define a FlyoutAction that contains a caption, description, and buttons.
    FlyoutAction closeAction = new FlyoutAction()
    {
        Caption = "Close",
        Description = "Do you want to close the dialog?"
    };

    // Add predefined commands (OK and Cancel) to the flyout.
    closeAction.Commands.Add(FlyoutCommand.OK);
    closeAction.Commands.Add(FlyoutCommand.Cancel);

    // Assign the action to the flyout.
    message.Action = closeAction;

    // Customize flyout appearance and behavior for this specific instance.
    message.Properties.Style = FlyoutStyle.MessageBox;                     // Display the flyout as a message box.
    message.Properties.Appearance.BackColor = Color.Blue;                  // Override the global background color.
    message.Properties.AppearanceCaption.ForeColor = Color.White;          // Override the global caption color.
    message.Properties.AppearanceCaption.Font = new Font("Tahoma", 14, FontStyle.Bold); // Customize caption font.

    // Register the flyout in the WindowsUIView.
    windowsUIView1.ContentContainers.Add(message);
}
See Also