ViewItemAttribute(Type, Boolean) Constructor

Initializes a new instance of the ViewItemAttribute.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

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

Parameters

Type Name Description
Type modelNodeType

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.

Boolean isDefault

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.

Remarks

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