menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AsyncCommandBase - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class AsyncCommandBase

    Provides the base implementation for all the Asynchronous Command classes.

    Inheritance
    System.Object
    AsyncCommandBase
    PasteAsyncCommand
    Implements
    IAsyncCommand
    System.Windows.Input.ICommand
    Namespace: Syncfusion.UI.Xaml.RichTextBoxAdv
    Assembly: Syncfusion.SfRichTextBoxAdv.UWP.dll
    Syntax
    public abstract class AsyncCommandBase : Object, IAsyncCommand, ICommand

    Constructors

    AsyncCommandBase(SfRichTextBoxAdv)

    Initializes a new instance of the AsyncCommandBase class for the specified SfRichTextBoxAdv.

    Declaration
    public AsyncCommandBase(SfRichTextBoxAdv richTextBoxAdv)
    Parameters
    Type Name Description
    SfRichTextBoxAdv richTextBoxAdv

    The SfRichTextBoxAdv instance to which the AsyncCommandBase is associated.

    Properties

    OwnerControl

    Gets or Sets the owner control of the command.

    Declaration
    public SfRichTextBoxAdv OwnerControl { get; set; }
    Property Value
    Type Description
    SfRichTextBoxAdv

    The SfRichTextBoxAdv instance to which the command is associated.

    Methods

    CanExecute(Object)

    Defines the method that determines whether the command can execute in its current state.

    Declaration
    public abstract 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.

    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

    Data used by the command. If the command does not require data to be passed, this object can be set to null.

    ExecuteAsync(Object)

    Returns the function to be called when the command is invoked.

    Declaration
    public abstract Task ExecuteAsync(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
    System.Threading.Tasks.Task

    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

    IAsyncCommand
    System.Windows.Input.ICommand

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved