Class BaseCommand
Inheritance
System.Object
BaseCommand
Implements
System.Windows.Input.ICommand
Namespace: Syncfusion.UI.Xaml.Utility
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class BaseCommand : Object, ICommand
Constructors
BaseCommand(Action<Object>)
Creates a new command that can always execute.
Declaration
public BaseCommand(Action<object> execute)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Object> | execute | The execution logic. |
BaseCommand(Action<Object>, Predicate<Object>)
Creates a new command.
Declaration
public BaseCommand(Action<object> execute, Predicate<object> canExecute)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Object> | execute | The execution logic. |
System.Predicate<System.Object> | canExecute | The execution status logic. |
Methods
CanExecute(Object)
Declaration
public bool CanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter |
Returns
Type |
---|
System.Boolean |
Execute(Object)
Declaration
public void Execute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter |
Events
CanExecuteChanged
Declaration
public event EventHandler CanExecuteChanged
Event Type
Type |
---|
System.EventHandler |
Implements
System.Windows.Input.ICommand