PropertyGridControl.GetIsEditorActivationAction Event
Allows you to specify whether an action (key down, text input, or mouse left button click) activates the focused editor.
Namespace: DevExpress.Xpf.PropertyGrid
Assembly: DevExpress.Xpf.PropertyGrid.v24.2.dll
NuGet Package: DevExpress.Wpf.PropertyGrid
#Declaration
public event EventHandler<GetIsEditorActivationActionEventArgs> GetIsEditorActivationAction
#Event Data
The GetIsEditorActivationAction event's data class is GetIsEditorActivationActionEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Activation |
Gets an activation action.
Inherited from Activation |
Handled |
Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
Inherited from Routed |
Is |
Gets or sets whether the action activates the focused cell’s editor. |
Key |
Gets event arguments for the Key |
Mouse |
Gets event arguments for the Mouse |
Original |
Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.
Inherited from Routed |
Routed |
Gets or sets the Routed |
Row |
Gets a property grid row.
Inherited from Property |
Source |
Gets or sets a reference to the object that raised the event.
Inherited from Routed |
Template |
Gets an in-place editor specified in a cell template.
Inherited from Activation |
Text |
Gets event arguments for the Text |
Value |
Gets a row’s value.
Inherited from Property |
The event data class exposes the following methods:
Method | Description |
---|---|
Invoke |
When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation.
Inherited from Routed |
On |
When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes.
Inherited from Routed |
#Remarks
A user can activate the property definition’s in-place editor in the following ways:
- Click the value cell.
- Press
Enter
. - Press
F2
. - Start typing.
#Example
The following code sample does not activate an editor when a user clicks it:
void OnGetIsEditorActivationAction(object sender, DevExpress.Xpf.PropertyGrid.GetIsEditorActivationActionEventArgs e) {
if (e.ActivationAction == DevExpress.Xpf.Editors.ActivationAction.MouseLeftButtonDown)
e.IsActivationAction = false;
}
#Process User Actions
The PropertyGridControl includes the following events that allow you to specify how users can interact with editors:
Event | Description |
---|---|
Get |
Allows you to specify whether an action (key down, text input, or mouse left button click) activates the focused editor. |
Process |
Allows you to prohibit the focused editor to process an activation action. |
Get |
Allows you to specify whether an active editor responds to keys that a user presses. |