# Predefined Dialogs

The PdfViewer uses a number of predefined dialogs to display additional information to end users and prompt them for input. Each of the dialogs is opened by using the respective key combination or by explicitly invoking the respective command.

To be displayed, the dialogs have first to be registered either through the `ExtensibilityManager` helper class when using code-behind or through the respective attached property of the `RadPdfViewerAttachedComponents` class when defined in XAML.

## The Find Dialog

The `FindDialog` dialog allows flexible searching in the loaded PDF document. For more information, refer to the article on the [search functionality of the PdfViewer](https://www.telerik.com/winui/documentation/controls/radpdfviewer/user-interaction/find).

#### **Register the FindDialog by using ExtensibilityManager**

```C#
ExtensibilityManager.RegisterPasswordRequiredDialog(new FindDialog());
```

To add the dialog through XAML,  use the `RegisterFindDialog` property of the `RadPdfViewerAttachedComponents` class.

#### **Register the FindDialog through XAML**

```XAML
<telerik:RadPdfViewer telerik:RadPdfViewerAttachedComponents.RegisterFindDialog="True" />
```

![WinUI RadPdfViewer Find Dialog in PdfViewer](https://www.telerik.com/winui/documentation/assets/93f1781172983160c1ac883786134310/radpdfviewer-find-dialog-0.png)

## The Password Required Dialog

When opening a password-protected PDF file, you can render the `PasswordRequiredDialog` to prompt the user to input the password for this document. For more information, refer to the article on [opening files in the PdfViewer](https://www.telerik.com/winui/documentation/controls/radpdfviewer/file-operations/open-files).

#### **Register the PasswordRequiredDialog by using the ExtensibilityManager**

```C#
ExtensibilityManager.RegisterPasswordRequiredDialog(new PasswordRequiredDialog());
```

To add the dialog through XAML, use the `RegisterPasswordRequiredDialog` property of the `RadPdfViewerAttachedComponents` class.

#### **Register the PasswordRequiredDialog through XAML**

```XAML
<telerik:RadPdfViewer telerik:RadPdfViewerAttachedComponents.RegisterPasswordRequiredDialog="True" />
```

![WinUI RadPdfViewer Password Required Dialog in PdfViewer](https://www.telerik.com/winui/documentation/assets/77cbd81230a9c4da1a58e95fcf573dc4/radpdfviewer-open-file-0.png)

## The Sign Signature Dialog

The `SignSignatureDialog` enables you to choose a `.pfx` file representing the certificate and enter the password for it. For more information, refer to the article on [using digital signature in the PdfViewer](https://www.telerik.com/winui/documentation/controls/radpdfviewer/user-interaction/digital-signature).

#### **Register the SignSignatureDialog**

```C#
ExtensibilityManager.RegisterSignSignatureDialog(new SignSignatureDialog());
```

To add the dialog through XAML, use the `RegisterSignSignatureDialog` property of the `RadPdfViewerAttachedComponents` class.

#### **Register the SignSignatureDialog through XAML**

```XAML
<telerik:RadPdfViewer telerik:RadPdfViewerAttachedComponents.RegisterSignSignatureDialog="True" />
```

![WinUI RadPdfViewer Sign Signature Dialog in PdfViewer](https://www.telerik.com/winui/documentation/assets/9249b7d54e1b5e1f23dabf4bf82db678/radpdfviewer-digital-signature-0.png)

## The Signature Properties Dialog

The `SignaturePropertiesDialog` provides detailed information on which signature is invalid and why. For more information, refer to the article on [using digital signature in the PdfViewer](https://www.telerik.com/winui/documentation/controls/radpdfviewer/user-interaction/digital-signature).

#### **Register the SignaturePropertiesDialog**

```C#
ExtensibilityManager.RegisterSignaturePropertiesDialog(new SignaturePropertiesDialog());
```

To add the dialog through XAML, you can use the `RegisterSignaturePropertiesDialog` property of the `RadPdfViewerAttachedComponents` class.

#### **Register the SignaturePropertiesDialog through XAML**

```XAML
<telerik:RadPdfViewer telerik:RadPdfViewerAttachedComponents.RegisterSignaturePropertiesDialog="True" />
```

![WinUI RadPdfViewer Signature Properties Dialog in PdfViewer](https://www.telerik.com/winui/documentation/assets/0262569ddcc961b456abb7faf728c5eb/radpdfviewer-digital-signature-1.png)

## See Also

* [Opening Files](https://www.telerik.com/winui/documentation/controls/radpdfviewer/file-operations/open-files)
