Back to Devexpress

PdfViewerCommands.PrintDocument Property

maui-devexpress-dot-maui-dot-pdf-dot-pdfviewercommands-2f074de0.md

latest1.3 KB
Original Source

PdfViewerCommands.PrintDocument Property

Returns the command that invokes the system print dialog.

Namespace : DevExpress.Maui.Pdf

Assembly : DevExpress.Maui.Pdf.dll

NuGet Package : DevExpress.Maui.Pdf

Declaration

csharp
public Command PrintDocument { get; }

Property Value

TypeDescription
Command

The command that invokes the system print dialog.

|

Remarks

The following example invokes the system print dialog:

xaml
<ContentPage.ToolbarItems>
    <ToolbarItem IconImageSource="print" Command="{Binding Commands.PrintDocument, Source={x:Reference pdfViewer}}" />
</ContentPage.ToolbarItems>

<dxpdf:PdfViewer x:Name="pdfViewer" DocumentSource="ReportMerging.pdf" />

See Also

PrintDocumentAsync(String)

PdfViewerCommands Class

PdfViewerCommands Members

DevExpress.Maui.Pdf Namespace