WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BaseCommand - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class BaseCommand

    Inheritance
    System.Object
    BaseCommand
    Implements
    System.Windows.Input.ICommand
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.UI.Xaml.Utility
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class BaseCommand : 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 Description
    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 Description
    System.EventHandler

    Implements

    System.Windows.Input.ICommand
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved