ClassRadDockCommandManager
Manages all the commands registered with a RadDock instance.
Definition
Namespace:Telerik.WinControls.UI.Docking
Assembly:Telerik.WinControls.RadDock.dll
Syntax:
public class RadDockCommandManager : RadDockObject, IDisposable, INotifyPropertyChanged, INotifyPropertyChangingEx, IMessageListener
Inheritance: objectRadDockObjectRadDockCommandManager
Implements:
Inherited Members
Constructors
RadDockCommandManager(RadDock)
Constructs a new instance of the RadDockCommandManager class.
Declaration
public RadDockCommandManager(RadDock dockManager)
Parameters
dockManager
The RadDock instance this manager is associated with.
Properties
Commands
Gets all the registered commands with this manager.
Declaration
public IEnumerable<RadDockCommand> Commands { get; }
Property Value
Methods
CanProcessMessage(Message)
Determines whether the manager should process keyboard messages
DisposeManagedResources()
Unregisters this instance from the global RadMessageFilter instance.
Declaration
protected override void DisposeManagedResources()
Overrides
ExecuteCommand(string)
Attempts to execute the RadDockCommand which matches the specified name.
FindCommandByName(string)
Finds the RadDockCommand instance which name equals the specified one. May be null if no such command is registered.
Declaration
public RadDockCommand FindCommandByName(string name)
Parameters
name
Returns
IsModifierKey(Keys)
Determines whether the specified Key is a modifier.
OnDockManagerLoaded()
The manager gets notified that the associated
Declaration
protected virtual void OnDockManagerLoaded()
OnEnabledChanged()
Notifies for a change in the Enabled state.
Declaration
protected virtual void OnEnabledChanged()
ProcessKeyDown(KeyEventArgs)
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.
Declaration
public virtual bool ProcessKeyDown(KeyEventArgs keys)
Parameters
keys
Returns
RegisterCommand(RadDockCommand)
Registers the specified command, using the command's Name as a key.
Declaration
public void RegisterCommand(RadDockCommand command)
Parameters
command
UnregisterCommand(string)
Removes an already registered command with the specified name.