Class PivotCommand
Defines a command that implements ICommand and is routed through the element tree.
Inheritance
System.Object
PivotCommand
Implements
System.Windows.Input.ICommand
Namespace: Syncfusion.Olap.UWP.Common
Assembly: Syncfusion.Olap.UWP.dll
Syntax
public class PivotCommand : Object, ICommand
Constructors
PivotCommand(Action)
Initializes a new instance of the PivotCommand class.
Declaration
public PivotCommand(Action execute)
Parameters
Type | Name | Description |
---|---|---|
System.Action | execute | The execution logic. |
PivotCommand(Action, Predicate<Object>)
Initializes a new instance of the PivotCommand class.
Declaration
public PivotCommand(Action execute, Predicate<object> canExecute)
Parameters
Type | Name | Description |
---|---|---|
System.Action | execute | The execution logic. |
System.Predicate<System.Object> | canExecute | The execution status logic. |
Methods
CanExecute(Object)
Defines the method that determines whether the command can execute in its current state.
Declaration
public bool CanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | Data used by the command. If the command does not require data to be passed, this object can be set to null. |
Returns
Type | Description |
---|---|
System.Boolean | true if this command can be executed; otherwise, false. |
Execute(Object)
Defines the method to be called when the command is invoked.
Declaration
public void Execute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter |
RaiseCanExecuteChanged()
Raises the CanExecuteChanged event.
Declaration
public void RaiseCanExecuteChanged()
Events
CanExecuteChanged
Occurs when changes occur that affect whether or not the command should execute.
Declaration
public event EventHandler CanExecuteChanged
Event Type
Type |
---|
System.EventHandler |
Implements
System.Windows.Input.ICommand