wpf-devexpress-dot-xpf-dot-grid-dot-activationactioneventargsbase.md
Gets an activation action’s type.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public ActivationAction ActivationAction { get; }
Public ReadOnly Property ActivationAction As ActivationAction
| Type | Description |
|---|---|
| ActivationAction |
An activation action’s type.
|
Available values:
| Name | Description |
|---|---|
| KeyDown |
A key is pressed.
| | KeyUp |
A key is released.
| | TextInput |
Text is inputed.
| | MouseLeftButtonDown |
The mouse’s left button is pressed.
| | MouseLeftButtonUp |
The mouse’s left button is released.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the ActivationAction property.
Note
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.
wpf-data-grid-embed-a-richtextbox-into-grid-cells/CS/Window1.xaml.cs#L25
if(e.Column.FieldName == "RtfContent") {
if(e.ActivationAction == ActivationAction.MouseLeftButtonDown)
e.RaiseEventAgain = true;
how-to-specify-navigation-in-custom-cell-editors/CS/NavigationBehavior.cs#L19
if (e.Column.FieldName == nameof(Place.City))
if (e.ActivationAction == ActivationAction.MouseLeftButtonDown && e.MouseLeftButtonEventArgs.LeftButton == System.Windows.Input.MouseButtonState.Pressed)
e.RaiseEventAgain = true;
how-to-specify-navigation-in-custom-cell-editors/VB/NavigationBehavior.vb#L24
If Equals(e.Column.FieldName, NameOf(Place.City)) Then
If e.ActivationAction = ActivationAction.MouseLeftButtonDown AndAlso e.MouseLeftButtonEventArgs.LeftButton = System.Windows.Input.MouseButtonState.Pressed Then e.RaiseEventAgain = True
End If
See Also
ActivationActionEventArgsBase Class