The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

MobileWindow(XafApplication, TemplateContext, ICollection<Controller>, Boolean, Boolean) Constructor

Initializes a new instance of the MobileWindow class.

Namespace: DevExpress.ExpressApp.Mobile

Assembly: DevExpress.ExpressApp.Mobile.v19.2.dll

Declaration

public MobileWindow(
    XafApplication application,
    TemplateContext context,
    ICollection<Controller> controllers,
    bool isMain,
    bool activateControllersImmediately
)
Public Sub New(
    application As XafApplication,
    context As TemplateContext,
    controllers As ICollection(Of Controller),
    isMain As Boolean,
    activateControllersImmediately As Boolean
)

Parameters

Name Type Description
application XafApplication

An XafApplication object that provides methods and properties to manage the current application. This value is assigned to the Frame.Application property.

context TemplateContext

A TemplateContext object representing the created Window's context. This value is assigned to the Frame.Context property.

controllers ICollection<Controller>

A ICollection<Controller> Controllers collection.

isMain Boolean

true, if the created Window is main; otherwise, false. This value is assigned to the Window.IsMain property.

activateControllersImmediately Boolean

true if Controllers are created immediately after the Window has been created and before the Window's Window.Template is created; false if Controllers are created after the Window's Window.Template has been created.

Remarks

The constructor is used to create and initialize a new MobileWindow. The Controllers passed using the controllers parameter are registered within the created Window (see the Frame.RegisterController method description).

This method is not designed to be used directly from your code. The currently set View Strategy creates Windows automatically using the XafApplication.CreateWindow method. For instance, when the main Window is created, the default Show View Strategy activates Window Controllers after the Window's Template is created. For the remaining Windows, Window Controllers are activated before creating the Template.

See Also