Skip to main content
.NET Framework 4.5.2+

IModelCreatableItems Interface

The CreatableItems node provides information to the New Action.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

[ModelNodesGenerator(typeof(ModelCreatableItemsGenerator))]
[ImageName("ModelEditor_CreatableItems_Object")]
public interface IModelCreatableItems :
    IModelNode,
    IModelList<IModelCreatableItem>,
    IList<IModelCreatableItem>,
    ICollection<IModelCreatableItem>,
    IEnumerable<IModelCreatableItem>,
    IEnumerable

Remarks

This interface is a part of the Application Model infrastructure. You do not need to implement this interface in most cases. The IModelCreatableItems is used by the NewObjectViewController, to extend the IModelApplication. To learn more, refer to the Application Model Structure topic.

The IModelCreatableItems node represents a list of the IModelCreatableItem nodes.

The CreatableItems node provides information to the New Action. This Action allows an end-user to create an object of one of the specified types represented by items of this Action:

In the Windows Forms application version, this Action’s items are divided on two groups.

WinNewObjectViewController_New

The group that is displayed above the separator represents the current List View’s object type and its descendants. The group below the separator contains the items that are listed in the CreatableItems node.

In the ASP.NET Web Forms application version, there are two New Actions:

WebNewObjectViewController_NewAction

WebNewObjectViewController_NewRootObjectAction

The first one contains the items that represent the current List View’s object type and its descendants. The second one contains the items that are listed in the CreatableItems node.

Use the CreatableItems node to add items to the New Action. The items are represented by this node’s child nodes. To add a new child node, select the Add Item menu item in the CreatableItems node’ context menu.

You can add child nodes to the CreatableItems node in code. Use the DefaultClassOptionsAttribute or CreatableItemAttribute attribute for this purpose.

To customize the default content of this node, implement a Generator Updater for the ModelCreatableItemsGenerator Nodes Generator.

See Also