Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ModelNodesGeneratorAttribute Class

Applied to Application Model node interfaces. Specifies a Nodes Generator for the current node.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[AttributeUsage(AttributeTargets.Interface)]
public sealed class ModelNodesGeneratorAttribute :
    Attribute

#Remarks

To define how the custom Application Model node is generated, implement a ModelNodesGeneratorBase descendant and override the GenerateNodesCore method. To apply the implemented Generator to the required node, decorate the model node interface with the ModelNodesGenerator attribute, and pass the Nodes Generator type as the parameter.

[ModelNodesGenerator(typeof(MyChildNodesGenerator))]
public interface IModelMyNodeWithChildNodes : IModelNode, IModelList<IModelMyChildNode> {
}

#Inheritance

Object
Attribute
ModelNodesGeneratorAttribute
See Also