Class RibbonCommandManager
Registers connection between command and their RibbonCommandProvider.
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public static class RibbonCommandManager : Object
Fields
SynchronizedItemProperty
Defines Synchronizing item for Ribbon controls.
Declaration
public static readonly DependencyProperty SynchronizedItemProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UniqueItemNameProperty
Identifies the UniqueItemNameProperty dependency property.
Declaration
public static readonly DependencyProperty UniqueItemNameProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the UniqueItemNameProperty dependency property.
Properties
CommandDictionary
Gets the command dictionary.
Declaration
public static Dictionary<ICommand, RibbonCommandProvider> CommandDictionary { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.Windows.Input.ICommand, RibbonCommandProvider> | The command dictionary. |
Methods
GetSynchronizedItem(DependencyObject)
Gets the synchronized item.
Declaration
public static string GetSynchronizedItem(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The obj. |
Returns
Type |
---|
System.String |
GetUniqueItemName(DependencyObject)
Declaration
public static string GetUniqueItemName(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj |
Returns
Type |
---|
System.String |
Register(ICommand, RibbonCommandProvider)
Registers connection between RibbonCommandProvider and specified System.Windows.Input.ICommand.
Declaration
public static void Register(ICommand command, RibbonCommandProvider provider)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.ICommand | command | The System.Windows.Input.ICommand that will receive the UI provider. |
RibbonCommandProvider | provider | RibbonCommandProviderthat will apply to the command. |
SetSynchronizedItem(DependencyObject, String)
Sets the synchronized item.
Declaration
public static void SetSynchronizedItem(DependencyObject obj, string value)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The obj. |
System.String | value | The value. |
SetUniqueItemName(DependencyObject, String)
Declaration
public static void SetUniqueItemName(DependencyObject obj, string value)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | |
System.String | value |
Unregister(ICommand)
Unregisters connection between UI provider and specified System.Windows.Input.ICommand.
Declaration
public static void Unregister(ICommand command)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.ICommand | command | The System.Windows.Input.ICommand which needs to be unregistered. |
UnregisterAll()
Unregisters connections for all System.Windows.Input.ICommand objects.
Declaration
public static void UnregisterAll()