Back to Devexpress

ActivationActionEventArgsBase.ActivationAction Property

wpf-devexpress-dot-xpf-dot-grid-dot-activationactioneventargsbase.md

latest3.3 KB
Original Source

ActivationActionEventArgsBase.ActivationAction Property

Gets an activation action’s type.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public ActivationAction ActivationAction { get; }
vb
Public ReadOnly Property ActivationAction As ActivationAction

Property Value

TypeDescription
ActivationAction

An activation action’s type.

|

Available values:

NameDescription
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

csharp
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

csharp
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

vb
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

ActivationActionEventArgsBase Members

DevExpress.Xpf.Grid Namespace