New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents an abstract base class for commands that can be executed on a RadPdfViewer control.

Definition

Constructors

C#
protected PdfViewerCommand()

Properties

Gets the RadPdfViewer control that this command is associated with.

C#
public RadPdfViewer PdfViewer { get; }

Methods

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

C#
public abstract bool CanExecute(object parameter)
Parameters:parameterobject

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

Returns:

bool

true if this command can be executed; otherwise, false.

Implements: ICommand.CanExecute(object)

Defines the method to be called when the command is invoked.

C#
public abstract void Execute(object parameter)
Parameters:parameterobject

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

Implements: ICommand.Execute(object)

Raises the CanExecuteChanged event to notify that the command's execution state has changed.

C#
public void RaiseCanExecuteChanged()

Events

Occurs when changes occur that affect whether or not the command should execute.

C#
public event EventHandler CanExecuteChanged

Implements: ICommand.CanExecuteChanged