Back to Devexpress

ShowViewParameters.Context Property

expressappframework-devexpress-dot-expressapp-dot-showviewparameters-08823d9d.md

latest3.1 KB
Original Source

ShowViewParameters.Context Property

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

Declaration

csharp
public TemplateContext Context { get; set; }
vb
Public Property Context As TemplateContext

Property Value

TypeDefaultDescription
TemplateContextDevExpress.ExpressApp.TemplateContext.Undefined

A Template context for the target View’s Window.

|

Remarks

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.

xaf-win-custom-button-in-lookup-property-editor/CS/WinSolution.Module.Win/MyLookupPropertyEditor.cs#L34

csharp
svp.TargetWindow = TargetWindow.Default;
svp.Context = TemplateContext.View;
svp.CreateAllControllers = true;

xaf-win-custom-button-in-lookup-property-editor/VB/WinSolution.Module.Win/MyLookupPropertyEditor.vb#L41

vb
svp.TargetWindow = TargetWindow.Default
svp.Context = TemplateContext.View
svp.CreateAllControllers = True

See Also

Windows and Frames

ShowViewParameters Class

ShowViewParameters Members

DevExpress.ExpressApp Namespace