Back to Devexpress

IModelCreatableItems Interface

expressappframework-devexpress-dot-expressapp-dot-systemmodule-95fb3a37.md

latest4.2 KB
Original Source

IModelCreatableItems Interface

The CreatableItems node provides information to the New Action in WinForms.

Namespace : DevExpress.ExpressApp.SystemModule

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[ImageName("ModelEditor_CreatableItems_Object")]
[ModelNodesGenerator(typeof(ModelCreatableItemsGenerator))]
public interface IModelCreatableItems :
    IModelNode,
    IModelList<IModelCreatableItem>,
    IList<IModelCreatableItem>,
    ICollection<IModelCreatableItem>,
    IEnumerable<IModelCreatableItem>,
    IEnumerable
vb
<ModelNodesGenerator(GetType(ModelCreatableItemsGenerator))>
<ImageName("ModelEditor_CreatableItems_Object")>
Public Interface IModelCreatableItems
    Inherits IModelNode,
             IModelList(Of IModelCreatableItem),
             IList(Of IModelCreatableItem),
             ICollection(Of IModelCreatableItem),
             IEnumerable(Of IModelCreatableItem),
             IEnumerable

The following members return IModelCreatableItems objects:

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 interface is a list of the IModelCreatableItem nodes.

The CreatableItems node contains additional items for the New Action in WinForms. In this platform, the New Action’s items are divided in the following groups.

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.

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

IModelCreatableItems Members

Application Model (UI Settings Storage)

How the XAF Application Model Works

DevExpress.ExpressApp.SystemModule Namespace