menu

WPF

  • Code Examples
  • 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.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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
    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved