Class RadDockCommandManager
Manages all the commands registered with a RadDock instance.
Inherited Members
Namespace: Telerik.WinControls.UI.Docking
Assembly: Telerik.WinControls.RadDock.dll
Syntax
public class RadDockCommandManager : RadDockObject, IDisposable, INotifyPropertyChanged, INotifyPropertyChangingEx, IMessageListener
Constructors
RadDockCommandManager(RadDock)
Constructs a new instance of the RadDockCommandManager class.
Declaration
public RadDockCommandManager(RadDock dockManager)
Parameters
RadDock
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
System.Collections.Generic.IEnumerable<RadDockCommand>
|
Enabled
Determines whether the command manager is currently enabled.
Declaration
public bool Enabled { get; set; }
Property Value
System.Boolean
|
Methods
CanProcessMessage(Message)
Determines whether the manager should process keyboard messages
Declaration
protected virtual bool CanProcessMessage(Message msg)
Parameters
System.Windows.Forms.Message
msg
|
Returns
System.Boolean
|
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.
Declaration
public void ExecuteCommand(string name)
Parameters
System.String
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
System.String
name
|
Returns
RadDockCommand
|
IsModifierKey(Keys)
Determines whether the specified Key is a modifier.
Declaration
protected virtual bool IsModifierKey(Keys currKey)
Parameters
System.Windows.Forms.Keys
currKey
|
Returns
System.Boolean
|
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
System.Windows.Forms.KeyEventArgs
keys
|
Returns
System.Boolean
|
RegisterCommand(RadDockCommand)
Registers the specified command, using the command's Name as a key.
Declaration
public void RegisterCommand(RadDockCommand command)
Parameters
RadDockCommand
command
|
UnregisterCommand(String)
Removes an already registered command with the specified name.
Declaration
public void UnregisterCommand(string name)
Parameters
System.String
name
|
Explicit Interface Implementations
IMessageListener.DesiredHook
IMessageListener.PreviewMessage(ref Message)
Declaration
MessagePreviewResult IMessageListener.PreviewMessage(ref Message msg)
Parameters
System.Windows.Forms.Message
msg
|
Returns
MessagePreviewResult
|
Implements
IMessageListener.PreviewSystemMessage(SystemMessage, Message)
Declaration
void IMessageListener.PreviewSystemMessage(SystemMessage message, Message msg)
Parameters
SystemMessage
message
|
System.Windows.Forms.Message
msg
|
Implements
IMessageListener.PreviewWndProc(Message)
Declaration
void IMessageListener.PreviewWndProc(Message msg)
Parameters
System.Windows.Forms.Message
msg
|