Back to Devexpress

ActionBase.TargetViewType Property

expressappframework-devexpress-dot-expressapp-dot-actions-dot-actionbase-a3eef16d.md

latest2.9 KB
Original Source

ActionBase.TargetViewType Property

Specifies the type of the View, for which an Action is intended.

Namespace : DevExpress.ExpressApp.Actions

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[DefaultValue(ViewType.Any)]
public ViewType TargetViewType { get; set; }
vb
<DefaultValue(ViewType.Any)>
Public Property TargetViewType As ViewType

Property Value

TypeDefaultDescription
ViewTypeAny

A ViewType enumeration value identifying a View type.

|

Available values:

NameDescription
Any

An Action or a View Controller will be activated in Frames (Windows) with any Views.

| | DetailView |

An Action or a View Controller will be activated in Frames (Windows) with Detail Views.

| | ListView |

An Action or a View Controller will be activated in Frames (Windows) with List Views.

| | DashboardView |

An Action or a View Controller will be activated in Frames (Windows) with Dashboard Views.

|

Remarks

If an Action is contained in a ViewController, you can use this property to specify the type of a View for which the Action will be activated. By default, this property is set to ViewType.Any. You can set another value in the Controller’s constructor or Designer. This value will be saved to the Application Model‘s IModelAction node.

See Also

TargetObjectType

TargetViewId

TargetViewNesting

Define the Scope of Controllers and Actions

ActionBase Class

ActionBase Members

DevExpress.ExpressApp.Actions Namespace