expressappframework-devexpress-dot-expressapp-dot-showviewparameters-08823d9d.md
Specifies the Template context for the Window that contains the target View.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public TemplateContext Context { get; set; }
Public Property Context As TemplateContext
| Type | Default | Description |
|---|---|---|
| TemplateContext | DevExpress.ExpressApp.TemplateContext.Undefined |
A Template context for the target View’s Window.
|
Use the Context property to specify a context for the target View’s Window in a WinForms application. This property is in effect when the TargetWindow property is set to NewWindow, NewModalWindow, or Default and the current Frame is a nested Frame.
The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.
svp.TargetWindow = TargetWindow.Default;
svp.Context = TemplateContext.View;
svp.CreateAllControllers = true;
svp.TargetWindow = TargetWindow.Default
svp.Context = TemplateContext.View
svp.CreateAllControllers = True
See Also