Class ControlCommandBase<TBehavior, TControl>
Inheritance
System.Object
ControlCommandBase<TBehavior, TControl>
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.MVVM.WPF.dll
Syntax
public class ControlCommandBase<TBehavior, TControl> : Object where TBehavior : CommandBehaviorBase<TControl>, new()
where TControl : UIElement
Type Parameters
Name |
---|
TBehavior |
TControl |
Constructors
ControlCommandBase()
Declaration
public ControlCommandBase()
Fields
CommandParameterProperty
Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CommandProperty
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Methods
GetCommand(TControl)
Declaration
public static ICommand GetCommand(TControl selector)
Parameters
Type | Name | Description |
---|---|---|
TControl | selector |
Returns
Type |
---|
System.Windows.Input.ICommand |
GetCommandParameter(TControl)
Declaration
public static object GetCommandParameter(TControl selector)
Parameters
Type | Name | Description |
---|---|---|
TControl | selector |
Returns
Type |
---|
System.Object |
SetCommand(TControl, ICommand)
Declaration
public static void SetCommand(TControl selector, ICommand command)
Parameters
Type | Name | Description |
---|---|---|
TControl | selector | |
System.Windows.Input.ICommand | command |
SetCommandParameter(TControl, Object)
Declaration
public static void SetCommandParameter(TControl selector, object parameter)
Parameters
Type | Name | Description |
---|---|---|
TControl | selector | |
System.Object | parameter |