Class
PdfViewerCommand

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

Definition

Namespace:Telerik.Maui.Controls.PdfViewer

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public abstract class PdfViewerCommand : NotifyPropertyChangedBase, INotifyPropertyChanged, ICommand

Inheritance: objectNotifyPropertyChangedBasePdfViewerCommand

Derived Classes: PdfViewerCloseSearchViewCommandPdfViewerDoubleTappedCommandPdfViewerFitDocumentToWidthCommandPdfViewerFitPageToWidthCommandPdfViewerNavigateToNextPageCommandPdfViewerNavigateToPageCommandPdfViewerNavigateToPreviousPageCommandPdfViewerToggleLayoutModeCommandPdfViewerZoomInCommandPdfViewerZoomOutCommand

Implements: ICommandINotifyPropertyChanged

Inherited Members NotifyPropertyChangedBase.OnPropertyChanged(string)NotifyPropertyChangedBase.UpdateValue<T>(ref T, T, string)NotifyPropertyChangedBase.UpdateValue<T>(ref T, T, Action<T>, string)NotifyPropertyChangedBase.PropertyChanged

Constructors

PdfViewerCommand()

Declaration

cs-api-definition
protected PdfViewerCommand()

Properties

PdfViewer

Gets the RadPdfViewer control that this command is associated with.

Declaration

cs-api-definition
public RadPdfViewer PdfViewer { get; }

Property Value

RadPdfViewer

Methods

CanExecute(object)

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

Declaration

cs-api-definition
public abstract bool CanExecute(object parameter)

Parameters

parameter

object

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)

Execute(object)

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

Declaration

cs-api-definition
public abstract void Execute(object parameter)

Parameters

parameter

object

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)

RaiseCanExecuteChanged()

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

Declaration

cs-api-definition
public void RaiseCanExecuteChanged()

Events

CanExecuteChanged

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

Declaration

cs-api-definition
public event EventHandler CanExecuteChanged

Event Value

EventHandler

Implements ICommand.CanExecuteChanged