expressappframework-devexpress-dot-expressapp-dot-xafapplication-dot-findmodelview-x28-system-dot-string-x29.md
Provides access the Application Model node that defines a specified View.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public virtual IModelView FindModelView(
string viewId
)
Public Overridable Function FindModelView(
viewId As String
) As IModelView
| Name | Type | Description |
|---|---|---|
| viewId | String |
A string value that specifies the identifier of the View to be found in the Application Model.
|
| Type | Description |
|---|---|
| IModelView |
An IModelView object that represents the Application Model node that defined the View specified by the viewId parameter.
|
Use this property to customize a particular Application Model node. This property returns the node whose ID attribute is set to the value specified by the viewId parameter.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FindModelView(String) method.
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.
if(shortcut != null) {
var model = Application.FindModelView(shortcut.ViewId);
if(model is IModelDetailView && string.IsNullOrEmpty(shortcut.ObjectKey)) {
See Also
FindModelView(String)