Back to Devexpress

IModelNavigationItem.View Property

expressappframework-devexpress-dot-expressapp-dot-systemmodule-dot-imodelnavigationitem.md

latest2.6 KB
Original Source

IModelNavigationItem.View Property

Specifies the View displayed when choosing the current item in the navigation control.

Namespace : DevExpress.ExpressApp.SystemModule

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[DataSourceProperty("Application.Views", new string[]{})]
IModelView View { get; set; }
vb
<DataSourceProperty("Application.Views", New String() {})>
Property View As IModelView

Property Value

TypeDescription
IModelView

An IModelView object specifying the View displayed when choosing the current item in the navigation control.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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-show-the-number-of-list-view-items-in-the-navigation-control/CS/XPO/ItemCount/ItemCount.Module/Controllers/NavigationObjectCountController.cs#L25

csharp
using(IObjectSpace objectSpace = Application.CreateObjectSpace(typeof(Email))) {
    IModelListView modelListView = (IModelListView)e.ModelNavigationItem.View;
    int objectsCount = objectSpace.GetObjectsCount(typeof(Email), CriteriaOperator.Parse(modelListView.Criteria));

See Also

IModelNavigationItem Interface

IModelNavigationItem Members

DevExpress.ExpressApp.SystemModule Namespace