Skip to main content
A newer version of this page is available. .

Fluent Design Form

  • 5 minutes to read

The FluentDesignForm is a Windows 10-inspired form that features:

  • An embedded Hamburger Menu (AccordionControl)
  • Adaptive Layout mode for the Hamburger Menu
  • Acrylic Material effect (a partially transparent texture)
  • Reveal Highlight visual effect

This topic consists of the following:

Important

Fluent Design Forms cannot be used as MDI containers.

Add Fluent Design Forms

To create a new project with a FluentDesignForm, use the DevExpress Template Gallery‘s Fluent Design Application project template.

Convert Standard Forms to Fluent Design Forms

To convert an existing form to a FluentDesignForm, use the Convert to Fluent Design Form command, which is available from:

To convert the form manually in code, change your form’s base class to FluentDesignForm. You also need to add the DevExpress.XtraBars library to your project.

namespace DXApplication1 {
    public partial class Form1 : DevExpress.XtraBars.FluentDesignSystem.FluentDesignForm {
        public Form1() {
            InitializeComponent();
        }
    }
}

Form Elements

A Fluent Design Form creates three controls when it is added to a project using the Template Gallery and Convert to Fluent Design Form commands:

  • AccordionControl with the HamburgerMenu view type enabled - Allows you to implement a menu (a navigation control) with custom commands arranged in a simple or hierarchical list.

    HamburgerMenu is one of two view types the AccordionControl provides (the AccordionControl.ViewType property is set to HamburgerMenu). This view type features:

    • the Hamburger button (expands/collapses the menu).

    • three display modes (Inline, Overlay and Minimal). The Fluent Design Form automatically switches between these modes when you resize the form. See the Adaptive Layout section below.

  • FluentDesignFormControl - The form’s header, which displays the form’s caption and allows you to show custom commands (bar item links) on its surface.
  • FluentDesignFormContainer - Add custom controls to this container to display them in the form’s client region.

Fluent Design Form - Elements

Acrylic and Reveal Highlight Effects

The FluentDesignForm.EnableAcrylicAccent setting enables the Acrylic Material (a semi-transparent texture) and Reveal Highlight effects for an embedded Accordion Control (Hamburger Menu). Note that the Accordion Control supports this visual effect in Inline mode only (see the “Adaptive Layout” section below).

Fluent Design Form - Reveal Highlight

Note

Both effects are enabled only if the application runs under Windows 10 Version 1803 (OS build 17134) or newer. Due to the recent changes in Windows API, these effects are temporarily disabled in Windows 10 Build 1903.

Adaptive Layout

With the Adaptive Layout functionality (enabled by default), the Fluent Design Form automatically switches the Hamburger Menu’s display mode between Inline, Overlay and Minimal when you expand or shrink the form.

Fluent Design Form - Resize

The table below describes the Hamburger Menu’s display modes (AccordionOptionsHamburgerMenu.DisplayMode) and form widths that trigger display mode switching.

Hamburger Menu’s Display Mode

Form Width

Inline

  • The Hamburger Menu is displayed as a side bar when collapsed, and in-line with the form content when expanded.

    Collapsing the menu enlarges the form’s content area. Conversely, expanding the menu shrinks this area.

Wide

Width is greater than OptionsAdaptiveLayout.InlineModeThreshold (by default, 650 pixels)

Overlay

  • The Hamburger Menu is displayed as a side bar when collapsed, and as an overlay above the content area when expanded.

Normal

Width is between OptionsAdaptiveLayout.OverlayModeThreshold and OptionsAdaptiveLayout.InlineModeThreshold (by default, between 450 and 650 pixels)

Minimal

  • The Hamburger Menu is rendered as a top-aligned bar with a single item (Hamburger button) when collapsed, and as an overlay above the content area when expanded.

    Note

    The Fluent Design Form automatically sets the Hamburger Menu’s DockStyle to Top in Minimal mode, rendering the menu as a bar. In other dock styles, the Hamburger Menu is rendered as a square Hamburger button.

    HamburgerButton.png

Compact

Width is less than OptionsAdaptiveLayout.OverlayModeThreshold (by default, 450 pixels)

The OptionsAdaptiveLayout.AdaptiveLayout option is hidden at design time. You can modify it in code as follows.

public partial class Form1 : DevExpress.XtraBars.FluentDesignSystem.FluentDesignForm {
    public Form1() {
        InitializeComponent();
        this.OptionsAdaptiveLayout.AdaptiveLayout = false;
    }
...
}

The Adaptive Layout functionality is not supported when the AccordionControl.ViewType property is set to Standard.

Hamburger Menu Overlaps Title Bar

By default, the Accordion Control (Hamburger Menu) occupies the entire form height in certain skins, overlapping the title bar.

Fluent Design Form - Accordion Sizes

When required, you can disable this behavior by overriding the ExtendNavigationControlToFormTitle virtual property.

public partial class Form1 : FluentDesignForm {
    //...
    protected override bool ExtendNavigationControlToFormTitle {
        get { return false; }
    }
}

Note

The title overlap feature is supported when:

  • Your form uses one of the following skins:

    • The Bezier

    • Office 2019 Colorful

    • Office 2016 Black

    • Office 2016 Dark

    • Office 2016 Colorful

  • The application runs on Windows 10 Version 1803 (OS build 17134) or newer.