NuGet Package: DevExpress.ExpressApp
The Type of the object(s) for which the current Action is intended.
If an Action is contained in a View Controller, you can specify the kind of the type of object(s) for which the Action will be activated. For this purpose, use the TargetObjectType property. By default, this property is not set. You can set a value in the Controller’s constructor or Designer. This value will be saved to the Application Model‘s IModelAction node.
To make a single Action available in Views of different business object types simultaneously, set the TargetObjectType property in code to an interface or their base class type, which is implemented or inherited by all these business types respectively. Alternatively, for the same task, you can specify several View identifiers via the ActionBase.TargetViewId property.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TargetObjectType property.
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.