The requested page is not available for the requested platform. You are viewing the content for Default platform.

ViewItemAttribute(Type, Boolean) Constructor

Initializes a new instance of the ViewItemAttribute.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v19.1.dll


public ViewItemAttribute(
    Type modelNodeType,
    bool isDefault
Public Sub New(
    modelNodeType As Type,
    isDefault As Boolean


Name Type Description
modelNodeType Type

A Type object specifying the type of the Application Model's node used by the custom View Item. This parameter value is used to initialize the ViewItemAttribute.ModelNodeType property.

isDefault Boolean

true if the target View Item should be used for the Application Model's nodes of the type specified by the modelNodeType parameter; otherwise, false.


Use this constructor when you want your View Item to be automatically set for the Application Mode's node of a particular type. In this instance, pass the required node type as the first attribute parameter; and true as the second attribute parameter.

If you implement an extra View Item for a particular node type, but you do not want it to be automatically set for this node, pass the required node type as the first attribute parameter; and false as a the second attribute parameter.

See Also