Skip to main content
.NET Framework 4.6.2+

IModelMemberViewItem.View Property

Specifies a View for a Property Editor to display. Has effect for the ListPropertyEditor, DetailPropertyEditor, ObjectPropertyEditor, and LookupPropertyEditor types.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

[DataSourceProperty("Views", new string[]{})]
IModelView View { get; set; }

Property Value

Type Description
IModelView

An IModelView object that certain Property Editor types use to create their inner View.

Remarks

In the Model Editor, the View property’s available values are shown in a drop down list. The Model Editor populates this list depending on the Property Editor type (IModelCommonMemberViewItem.PropertyEditorType).

When the PropertyEditorType property is set to a ListPropertyEditor or LookupPropertyEditor type, the Model Editor filters the View property’s dropdown list to show List Views only. Similarly, when you select the DetailPropertyEditor or ObjectPropertyEditor type, only Detail Views are available. See the Reference Properties topic for details.

Since Lookup Property Editors are platform-specific, they are not available in the common module’s Model Editor. Invoke the Model Editor from a platform-specific module or application project to change the List View model used for a Lookup Editor.

ViewsLookup

Note that XAF ignores the View property value when you open a View using the OpenObject Action (see the OpenObjectController description in the Built-in Controllers and Actions in the System Module topic for more information).

See Also