Back to Devexpress

Window.IsMain Property

expressappframework-devexpress-dot-expressapp-dot-window-d970de46.md

latest2.7 KB
Original Source

Window.IsMain Property

Indicates whether a Window is main.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public bool IsMain { get; }
vb
Public ReadOnly Property IsMain As Boolean

Property Value

TypeDescription
Boolean

true if the current Window is main; otherwise, false.

|

Remarks

When you start an application, the first Window displayed is a main Window. It represents a central Window that provides common application functionalities. Visually, it differs from other windows, in that it has a navigation control. This navigation control is an Action Container for the ViewNavigation Action. It lists items corresponding to declared business object types. End-users can use these items to open List or Detail Views that allow them to browse and edit the corresponding business objects.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsMain 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.Blazor.Server/Controllers/BlazorShowFilterDialogController.cs#L17

csharp
base.OnActivated();
if (Frame is Window && ((Window)Frame).IsMain) {
    showFilterDialogAction.Active["IsMainWindow"] = true;

See Also

Window Class

Window Members

DevExpress.ExpressApp Namespace