.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

DetailView.Model Property

Provides access to information on a View, which is stored in the Application Model.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v21.2.dll

Declaration

public IModelDetailView Model { get; }

Property Value

Type Description
IModelDetailView

An IModelDetailView object representing the current View’s Application Model node.

Remarks

Use this property to get the current View‘s properties which are stored in the Application Model.

By default, the Model property is set when a View is created. You can change this property value by calling the View’s View.SetModel method.

To learn how to customize the Application Model, refer to the Extend and Customize the Application Model in Code help topic. To learn how to use the Application Model in code, refer to the Access the Application Model in Code help topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Model 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.

See Also