Class PivotChartCommand
Defines a command that implements ICommand and is routed through the element tree.
Inheritance
System.Object
    PivotChartCommand
  Implements
System.Windows.Input.ICommand
  Namespace: Syncfusion.UI.Xaml.PivotChart
Assembly: Syncfusion.SfPivotChart.UWP.dll
Syntax
public class PivotChartCommand : Object, ICommand
  Constructors
PivotChartCommand(Action)
Initializes a new instance of the PivotChartCommand class.
Declaration
public PivotChartCommand(Action execute)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Action | execute | The execution logic.  | 
      
PivotChartCommand(Action, Predicate<Object>)
Initializes a new instance of the PivotChartCommand class.
Declaration
public PivotChartCommand(Action execute_, Predicate<object> canExecute_)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Action | execute_ | |
| System.Predicate<System.Object> | canExecute_ | 
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