Class PasswordDialogViewModel

This example demonstrates how to use a provide a native password input dialog.

Inheritance
System.Object
PasswordDialogViewModel
Implements
System.ComponentModel.INotifyPropertyChanged
Namespace: Catalog.ViewModels
Assembly: Catalog.dll
Syntax
public class PasswordDialogViewModel : Observable, INotifyPropertyChanged

Properties

ExportPDFCommand

Declaration
public ICommand ExportPDFCommand { get; }
Property Value
Type Description
System.Windows.Input.ICommand

OpenPDFCommand

Declaration
public ICommand OpenPDFCommand { get; }
Property Value
Type Description
System.Windows.Input.ICommand

OpenPDFViaAPICommand

Declaration
public ICommand OpenPDFViaAPICommand { get; }
Property Value
Type Description
System.Windows.Input.ICommand

PDFView

Declaration
public PdfView PDFView { get; }
Property Value
Type Description
PdfView

Methods

ExportPDF()

Present password options to remove security, or set user and/or owner passwords. Export the document to a new file.

Declaration
public async void ExportPDF()

Initialize(PdfView)

Declaration
public void Initialize(PdfView pdfView)
Parameters
Type Name Description
PdfView pdfView

OpenPDFPicker()

Declaration
public async void OpenPDFPicker()

OpenPDFViaAPI()

Open a PDF with a password without any UI interaction to provide the password.

Declaration
public async void OpenPDFViaAPI()

Implements

System.ComponentModel.INotifyPropertyChanged