ClassPdfViewerDoubleTappedCommand
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
Namespace:Telerik.Maui.Controls.PdfViewer
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class PdfViewerDoubleTappedCommand : PdfViewerCommand, INotifyPropertyChanged, ICommand
Inheritance: objectNotifyPropertyChangedBasePdfViewerCommandPdfViewerDoubleTappedCommand
Implements:
Inherited Members
Constructors
PdfViewerDoubleTappedCommand()
Declaration
public PdfViewerDoubleTappedCommand()
Methods
CanExecute(object)
Determines whether the command can be executed with the specified parameter.
Execute(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.
Declaration
public override void Execute(object parameter)
Parameters
parameter
The Point representing the location where the double-tap occurred.
Overrides