Back to Devexpress

ModelNodesGeneratorAttribute Class

expressappframework-devexpress-dot-expressapp-dot-model-f2b1c3e9.md

latest2.3 KB
Original Source

ModelNodesGeneratorAttribute Class

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

Namespace : DevExpress.ExpressApp.Model

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[AttributeUsage(AttributeTargets.Interface)]
public sealed class ModelNodesGeneratorAttribute :
    Attribute
vb
<AttributeUsage(AttributeTargets.Interface)>
Public NotInheritable Class ModelNodesGeneratorAttribute
    Inherits 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.

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

Inheritance

Object Attribute ModelNodesGeneratorAttribute

See Also

ModelNodesGeneratorAttribute Members

Read and Set Values for Built-in Application Model Nodes in Code

DevExpress.ExpressApp.Model Namespace