-
Notifications
You must be signed in to change notification settings - Fork 3
KeyboardShortcuts.ActionKeyAction
JaykeBird edited this page Feb 21, 2023
·
5 revisions
Back to home | Back to Reference | View raw text
A key action that executes an Action delegate when activated.
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SolidShineUi.KeyboardShortcuts
SolidShineUi.KeyboardShortcuts.ActionKeyAction[[ActionKeyAction]]
SolidShineUi.KeyboardShortcuts.IKeyAction[[IKeyAction]]
class SolidShineUi.KeyboardShortcuts.IKeyAction interfaceStyle;
end
SolidShineUi.KeyboardShortcuts.IKeyAction --> SolidShineUi.KeyboardShortcuts.ActionKeyAction
Type | Name | Methods |
---|---|---|
string |
ID Get or set the unique ID associated with this key action. |
get, set |
UIElement |
SourceElement Gets the UI element that this action is related to, if any. |
get |
Returns | Name |
---|---|
void |
Execute ()Activate this key action. |
A key action that executes an Action delegate when activated.
public ActionKeyAction(Action action, string methodId, UIElement sourceElement)
Type | Name | Description |
---|---|---|
Action |
action | The action to execute when this key action is activated. |
string |
methodId | The unique ID of this key action. |
UIElement |
sourceElement | The UI element, if any, this action is related to. For example, it could be a menu item or button that would alternatively trigger this action. |
Create a new ActionKeyAction.
public virtual void Execute()
Activate this key action.
public virtual UIElement SourceElement { get; }
Gets the UI element that this action is related to, if any.
public virtual string ID { get; set; }
Get or set the unique ID associated with this key action.
Generated with ModularDoc