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

Represents a command that handles double-tap gestures in the PDF viewer. This command toggles between fit-to-width and magnified zoom levels when the user double-taps on the PDF document.

Definition

Constructors

C#
public PdfViewerDoubleTappedCommand()

Methods

Determines whether the command can be executed with the specified parameter.

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

The parameter to check, expected to be a Point representing the tap location.

Returns:

bool

true if the parameter is a Point and the PDF document has pages; otherwise, false.

Overrides: PdfViewerCommand.CanExecute(object)

Executes the double-tap command by toggling between fit-to-width and magnified zoom levels. The command first attempts to fit the document to width, then applies magnification on subsequent taps.

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

The Point representing the location where the double-tap occurred.

Overrides: PdfViewerCommand.Execute(object)