New to Telerik UI for WPF? Download free 30-day trial

Protect Document Dialogs

These dialogs allow you to protect the document by adding a password or change the edit restrictions.

Protect and Unprotect Document Dialogs

An image showing the protect document dialog of RadRichTextBox for WPF

The protect document dialog can be opened from the Protect Document button in the Review tab of the RadRichTextBoxRibbonUI.

An image showing the button that opens the protect document dialog of RadRichTextBox for WPF

If the document is protected with a password, the Protect Document button will open the Unprotect Document dialog.

An image showing the button that opens the unprotect document dialog of RadRichTextBox for WPF

Editing Restrictions Dialog

An image showing the editing resitrctions dialog of RadRichTextBox for WPF

This dialog can be opened from the Editing Restrictions button in the Review tab of the RadRichTextBoxRibbonUI.

An image showing the button that opens the editing restrictions dialog of RadRichTextBox for WPF

Showing the Dialogs Manually

The dialog can be shown by executing the following commands:

  • ToggleDocumentProtectionCommand
  • ShowChangeEditingPermissionsDialogCommand

See how to bind the commands to external buttons in the Commands article.

Executing the show dialog command

this.richTextBox.Commands.ToggleDocumentProtectionCommand.Execute(); 
 
this.richTextBox.Commands.ShowChangeEditingPermissionsDialogCommand.Execute(null); 
Alternatively, you can use the following methods of RadRichTextBox:
  • ShowProtectDocumentDialog
  • ShowUnprotectDocumentDialog
  • ShowChangeEditingPermissionsDialog

Using the show dialog method

this.richTextBox.ShowProtectDocumentDialog(); 
 
this.richTextBox.ShowChangeEditingPermissionsDialog(); 
In this article