Back to Devexpress

WindowsUIView.FlyoutProperties Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-windowsui-dot-windowsuiview-0eb81576.md

latest3.4 KB
Original Source

WindowsUIView.FlyoutProperties Property

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

Namespace : DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[XtraSerializableProperty(XtraSerializationVisibility.Content)]
public IFlyoutProperties FlyoutProperties { get; }
vb
<XtraSerializableProperty(XtraSerializationVisibility.Content)>
Public ReadOnly Property FlyoutProperties As IFlyoutProperties

Property Value

TypeDescription
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.

csharp
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

WindowsUIView Class

WindowsUIView Members

DevExpress.XtraBars.Docking2010.Views.WindowsUI Namespace