Back to Devexpress

TemplateContext.ApplicationWindow Property

expressappframework-devexpress-dot-expressapp-dot-templatecontext.md

latest3.6 KB
Original Source

TemplateContext.ApplicationWindow Property

Represents the application window Template context.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public static TemplateContext ApplicationWindow { get; }
vb
Public Shared ReadOnly Property ApplicationWindow As TemplateContext

Property Value

TypeDescription
TemplateContext

A TemplateContext object representing the application window Template context.

|

Remarks

For a general description of Template contexts, refer to the TemplateContext structure description.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ApplicationWindow 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-how-to-create-information-panels/CS/XPO/InfoPanel/InfoPanel.Blazor.Server/BlazorApplication.cs#L19

csharp
protected override IFrameTemplate CreateDefaultTemplate(TemplateContext context) {
    if (context == TemplateContext.ApplicationWindow) {
        return new CustomApplicationWindowTemplate() { AboutInfoString = AboutInfo.Instance.GetAboutInfoString(this) };

xaf-custom-template-blazor/CS/XPO/CustomTemplate/CustomTemplate.Blazor.Server/BlazorApplication.cs#L31

csharp
protected override IFrameTemplate CreateDefaultTemplate(TemplateContext context) {
    if (context == TemplateContext.ApplicationWindow) {
        return new CustomMainFormTemplate((IModelOptionsBlazor)Model.Options) { AboutInfoString = AboutInfo.Instance.GetAboutInfoString(this) };

XAF_how-to-show-filter-dialog-before-listview/CS/EFCore/DialogBeforeListViewEF/DialogBeforeListViewEF.Module/Controllers/ShowFilterDialogController.cs#L18

csharp
base.OnActivated();
if(Frame.Context == TemplateContext.ApplicationWindow || Frame.Context == TemplateContext.View) {
    showFilterDialogAction.Active[DisableReason] = true;

See Also

TemplateContext Struct

TemplateContext Members

DevExpress.ExpressApp Namespace