Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Frame.Context Property

Returns a Frame’s context.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public TemplateContext Context { get; }

#Property Value

Type Description
TemplateContext

A TemplateContext object that indicates the current Frame’s context.

#Remarks

A Frame is displayed via a Frame Template in a UI. All Templates are related to particular contexts. So, when a Frame is created, a context must be determined to apply a proper Template. All the contexts are defined by the TemplateContext instances. The following table lists all the context names:

Context

Templates

TemplateContext.ApplicationWindow

LightStyleMainForm

LightStyleMainRibbonForm

OutlookStyleMainRibbonForm

MainFormV2

MainRibbonFormV2

TemplateContext.View

DetailFormV2

DetailRibbonFormV2

TemplateContext.PopupWindow

PopupForm

TemplateContext.LookupControl

LookupControlTemplate

TemplateContext.LookupWindow

LookupForm

TemplateContext.NestedFrame

NestedFrameTemplateV2

Note

Basically, contexts are only used in Windows Forms applications, to assign a Template to a Frame. In ASP.NET Web Forms applications, another mechanism is applied. To learn more, refer to the Template Customization and ASP.NET Web Forms Application Life Cycle topics.

See Also