Flyout.Properties Property
Provides access to the object that stores the current Flyout settings.
Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI
Assembly: DevExpress.XtraBars.v25.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
| Type | Description |
|---|---|
| IFlyoutDefaultProperties | An IFlyoutDefaultProperties object that stores the current Flyout settings. |
Remarks
The WindowsUIView.FlyoutProperties property specifies default flyout settings applied to all flyouts. 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