Back to Devexpress

Frame.View Property

expressappframework-devexpress-dot-expressapp-dot-frame.md

latest4.1 KB
Original Source

Frame.View Property

Provides access to a Frame‘s View.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public View View { get; }
vb
Public ReadOnly Property View As View

Property Value

TypeDescription
View

A View object representing the current Frame’s View.

|

Remarks

Cast the View object that is returned by this property by the DetailView or ListView type, to use members of the current Frame’s View.

The following code snippets (auto-collected from DevExpress Examples) contain references to the View 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-save-the-currently-opened-view-as-a-new-view-variant-at-runtime/CS/EF/ViewVariantSaveEF/ViewVariantSaveEF.Module/Controllers/UserViewVariantsController.cs#L200

csharp
private VariantsInfo GetVariantsInfo() {
    return Application.Modules.FindModule<ViewVariantsModule>().FrameVariantsEngine.GetVariants(Frame.View);
}

XAF_how-to-show-filter-dialog-before-listview/CS/EFCore/DialogBeforeListViewEF/DialogBeforeListViewEF.Win/WinModule.cs#L44

csharp
WinWindow window = FindWindowByView(view);
    return window == null ? null : window.View;
}

xaf-save-and-share-custom-view-settings/CS/EFCore/ViewSettingsEF/ViewSettingsEF.Module/Controllers/ViewVariantsController.cs#L29

csharp
Boolean result = false;
View savedView = Frame.View;
isLayoutProcessed = true;

XAF_Non-Persistent-Objects-Nested-In-Persistent-Objects-Demo/CS/XPO/NonPersistentDemo/NonPersistentDemo.Blazor.Server/BlazorApplication.cs#L25

csharp
public override IObjectSpace GetObjectSpaceToShowDetailViewFrom(Frame sourceFrame, Type objectType, TargetWindow targetWindow) {
    if(sourceFrame.View is ListView &&
        sourceFrame.View.ObjectTypeInfo.Type == typeof(NonPersistentObjectsDemo.Module.BusinessObjects.Agent) &&

See Also

Views

View

Frame Class

Frame Members

DevExpress.ExpressApp Namespace