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

ActionBase.SelectionContext Property

Specifies a context of an Action‘s execution.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[Browsable(false)]
public ISelectionContext SelectionContext { get; set; }

#Property Value

Type Description
DevExpress.ExpressApp.ISelectionContext

An instance of the class that implements the ISelectionContext interface.

#Remarks

This property is used as a parameter of the Execute event handlers in the ActionBase class descendants (SimpleAction, ParametrizedAction and so on). Use the property’s value to determine whether the current View is root, or to access the current View’s current object or the collection of selected objects. By default, for Actions contained in View Controllers, this property is set to the ViewController.View property value. For Actions from Window Controllers, this property is set to null.

Currently, members of the ISelectionContext interface are implemented in the View class only. If you need to set a new value to this property, use the View class or a custom class that implements the ISelectionContext interface.

See Also