Back to Devexpress

IModelOptionsWin.UIType Property

expressappframework-devexpress-dot-expressapp-dot-win-dot-systemmodule-dot-imodeloptionswin-d7d9a8b0.md

latest4.9 KB
Original Source

IModelOptionsWin.UIType Property

Specifies the Show View Strategy (see ShowViewStrategyBase) used in the WinForms application.

Namespace : DevExpress.ExpressApp.Win.SystemModule

Assembly : DevExpress.ExpressApp.Win.v25.2.dll

NuGet Packages : DevExpress.ExpressApp.Win, DevExpress.ExpressApp.Win.Design

Declaration

csharp
[DefaultValue(UIType.MultipleWindowSDI)]
UIType UIType { get; set; }
vb
<DefaultValue(UIType.MultipleWindowSDI)>
Property UIType As UIType

Property Value

TypeDefaultDescription
UITypeMultipleWindowSDI

A UIType enumeration value specifying the type of the UI used in the WinForms application.

|

Available values:

NameDescription
MultipleWindowSDI

The UI displays a single document interface. The application uses ShowInMultipleWindowsStrategy.

Applies to : Windows Forms

| | SingleWindowSDI |

The UI displays a single document interface. The application uses ShowInSingleWindowStrategy for Windows Forms and DevExpress.ExpressApp.Blazor.BlazorShowViewStrategy for ASP.NET Core Blazor.

Applies to : ASP.NET Core Blazor and Windows Forms

| | StandardMDI |

The UI displays a multiple document interface. The application uses MdiShowViewStrategy in standard mode.

Applies to : Windows Forms

| | TabbedMDI |

The UI displays a multiple document interface. The application uses MdiShowViewStrategy in tabbed mode for Windows Forms and DevExpress.ExpressApp.Blazor.BlazorMdiShowViewStrategy for ASP.NET Core Blazor.

Applies to : ASP.NET Core Blazor and Windows Forms

|

Remarks

We do not recommend setting this property to StandardMDI when the Ribbon interface is used. This configuration has not been thoroughly tested, as we have found it much less usable than others, and can potentially lead to errors. In conjunction with the Ribbon, the TabbedMDI mode provides better usability.

The following images demonstrate how the WinForms application UI is modified depending on this property’s value.

MultipleWindowSDI SingleWindowSDI StandardMDI TabbedMDI

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UIType property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XAF_how-to-show-filter-dialog-before-listview/CS/EFCore/DialogBeforeListViewEF/DialogBeforeListViewEF.Win/WinModule.cs#L32

csharp
void application_ModelChanged(object sender, EventArgs e) {
    UIType uiType = ((IModelOptionsWin)Application.Model.Options).UIType;
    if (uiType == UIType.StandardMDI) {

See Also

How to: Change View Display Mode from Tabbed MDI to Single Window (SDI)

IModelOptionsWin Interface

IModelOptionsWin Members

DevExpress.ExpressApp.Win.SystemModule Namespace