XtraForm.DefaultFormShowMode Property
Gets or sets how to display application forms.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.Utils.v24.2.dll
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