Skip to content

KeyboardShortcuts.ActionKeyAction

JaykeBird edited this page Feb 21, 2023 · 5 revisions

Back to home | Back to Reference | View raw text

ActionKeyAction class

Description

A key action that executes an Action delegate when activated.

Diagram

  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
Loading

Members

Properties

Public properties

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

Methods

Public methods

Returns Name
void Execute()
Activate this key action.

Details

Summary

A key action that executes an Action delegate when activated.

Inheritance

Constructors

ActionKeyAction

public ActionKeyAction(Action action, string methodId, UIElement sourceElement)
Arguments
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.
Summary

Create a new ActionKeyAction.

Methods

Execute

public virtual void Execute()
Summary

Activate this key action.

Properties

SourceElement

public virtual UIElement SourceElement { get; }
Summary

Gets the UI element that this action is related to, if any.

ID

public virtual string ID { get; set; }
Summary

Get or set the unique ID associated with this key action.

Generated with ModularDoc

Clone this wiki locally