Skip to main content
A newer version of this page is available. .

ShowViewParameters.Context Property

Specifies the Template context for the Window that will contain the target View.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

public TemplateContext Context { get; set; }

Property Value

Type Description
TemplateContext

A TemplateContext object that represents a Template context for the target View’s Window.

Remarks

All Windows are created in a particular context. For example, the main Window is created in the TemplateContext.ApplicationWindow context. In Windows Forms applications, a Template to be set to a Window is determined via the context. Use the Context property to get or set a context for the Window which will contain the target View. The property’s value will be considered by the Windows Form’s ShowViewStrategy under the following conditions:

By default, the Context property is set to the TemplateContext.Undefined context. In this case, the target View will be displayed in a separate Window with the TemplateContext.PopupWindow Template context, if the ShowViewParameters.Controllers collection contains one or more Controllers; otherwise, the Windows will be displayed in the TemplateContext.View Template context.

In ASP.NET applications, the target View is displayed either in a pop-up Window with the TemplateContext.PopupWindow Template context and a DialogController added, or in the same Window (Frame).

The following code snippets (auto-collected from DevExpress Examples) contain references to the Context 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.

See Also