New to Telerik UI for WinFormsStart a free 30-day trial

Manages all the commands registered with a RadDock instance.

Definition

Constructors

Constructs a new instance of the RadDockCommandManager class.

C#
public RadDockCommandManager(RadDock dockManager)
Parameters:dockManagerRadDock

The RadDock instance this manager is associated with.

Properties

Gets all the registered commands with this manager.

C#
public IEnumerable<RadDockCommand> Commands { get; }

Determines whether the command manager is currently enabled.

C#
public bool Enabled { get; set; }

Methods

Determines whether the manager should process keyboard messages

C#
protected virtual bool CanProcessMessage(Message msg)
Parameters:msgMessageReturns:

bool

Unregisters this instance from the global RadMessageFilter instance.

C#
protected override void DisposeManagedResources()

Overrides: RadDockObject.DisposeManagedResources()

Attempts to execute the RadDockCommand which matches the specified name.

C#
public void ExecuteCommand(string name)
Parameters:namestring

Finds the RadDockCommand instance which name equals the specified one. May be null if no such command is registered.

C#
public RadDockCommand FindCommandByName(string name)
Parameters:namestringReturns:

RadDockCommand

Determines whether the specified Key is a modifier.

C#
protected virtual bool IsModifierKey(Keys currKey)
Parameters:currKeyKeysReturns:

bool

The manager gets notified that the associated

C#
protected virtual void OnDockManagerLoaded()

Notifies for a change in the Enabled state.

C#
protected virtual void OnEnabledChanged()

Processes a WM_KEYDOWN message that comes into the UI thread. Default implementation will attempt to execute a command that matches completely or partially the keys combination.

C#
public virtual bool ProcessKeyDown(KeyEventArgs keys)
Parameters:keysKeyEventArgsReturns:

bool

Registers the specified command, using the command's Name as a key.

C#
public void RegisterCommand(RadDockCommand command)
Parameters:commandRadDockCommand

Removes an already registered command with the specified name.

C#
public void UnregisterCommand(string name)
Parameters:namestring