Skip to main content
.NET Framework 4.6.2+

ViewItemAttribute(Type, Boolean) Constructor

Initializes a new instance of the ViewItemAttribute.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public ViewItemAttribute(
    Type modelNodeType,
    bool isDefault
)

Parameters

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.

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