Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XtraForm.DefaultFormShowMode Property

Gets or sets how to display application forms.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public static FormShowMode DefaultFormShowMode { get; set; }

#Property Value

Type Description
FormShowMode

Specifies how to display application forms.

Available values:

Name Description
Default

Displays application forms immediately.

AfterInitialization

Displays application forms only after their initialization.

#Remarks

The DefaultFormShowMode property allows you to visually hide the form initialization process (in some cases, drawing controls may cause flickering). Set this property to AfterInitialization to initially display application forms with 0 opacity and return the opacity to 1 only after the form is completely initialized.

internal static class Program {
    [STAThread]
    static void Main() {
        // ...
        XtraForm.DefaultFormShowMode = FormShowMode.AfterInitialization;
    }
}

Alternatively, you can override the ShowMode property for a specific form:

public partial class Form1 : DevExpress.XtraEditors.XtraForm {
    protected override FormShowMode ShowMode => FormShowMode.AfterInitialization;
    // ...
}
See Also