Frame.Context Property
Returns a Frame’s context.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v25.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
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 |
|---|---|
LightStyleMainForm LightStyleMainRibbonForm OutlookStyleMainRibbonForm MainFormV2 MainRibbonFormV2 | |
DetailFormV2 DetailRibbonFormV2 | |
PopupForm | |
LookupControlTemplate | |
LookupForm | |
NestedFrameTemplateV2 |
Note
Contexts are only used in Windows Forms applications to assign a Template to a Frame. To learn more, refer to the Template Customization topic.
Related GitHub Examples
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.