diff --git a/wpf-toc.html b/wpf-toc.html index 33f83f463..c63d6ac2b 100644 --- a/wpf-toc.html +++ b/wpf-toc.html @@ -1226,6 +1226,7 @@
  • Load PDF without ToolStrip in viewer
  • Disable toolbar items
  • Use Pdfium rendering engine
  • +
  • Disable the Undo Redo operation
  • diff --git a/wpf/PdfViewer/How-To/Disable-the-Undo-Redo-operation.md b/wpf/PdfViewer/How-To/Disable-the-Undo-Redo-operation.md new file mode 100644 index 000000000..28d30a6b0 --- /dev/null +++ b/wpf/PdfViewer/How-To/Disable-the-Undo-Redo-operation.md @@ -0,0 +1,40 @@ +--- +layout: post +title: Disable the Undo Redo operation in PdfViewer | Syncfusion +description: Learn about how to Disable the Undo Redo operation in Syncfusion WPF Pdf Viewer control using UndoRedoSettings. +platform: wpf +control: PDF Viewer +documentation: ug +--- + +# Disable the Undo Redo operation + +To disable the Undo Redo operation, set the Limit property of UndoRedoSettings to zero. By default, this value is set to 100. Reducing the value to zero will disable the Undo Redo functionality. The following code example demonstrates how to set the Limit value: + +{% tabs %} +{% highlight C# %} + +//Initialize PDF Viewer. +PdfViewerControl pdfViewer = new PdfViewerControl(); +//Set Limit property as zero +pdfViewer.UndoRedoSettings.Limit = 0; +//Load the PDF. +pdfViewer.Load("Sample.pdf"); + + +{% endhighlight %} + + + +{% highlight vbnet %} + +'Initialize PDF Viewer. +Private pdfViewer As New PdfViewerControl() +'Set Limit property as zero +pdfViewer.UndoRedoSettings.Limit = 0 +'Load the PDF. +pdfViewer.Load("Sample.pdf") + + +{% endhighlight %} +{% endtabs %} \ No newline at end of file diff --git a/wpf/SfDiagram/Annotation.md b/wpf/SfDiagram/Annotation.md index 70a983bd1..cda660098 100644 --- a/wpf/SfDiagram/Annotation.md +++ b/wpf/SfDiagram/Annotation.md @@ -304,6 +304,6 @@ AnnotationEditorViewModel annotation = new AnnotationEditorViewModel() ## Multiple Annotations You can add any number of Annotations to a Node or Connector. -For sample, please refer to [MultipleAnnotation](http://www.syncfusion.com/downloads/support/directtrac/239374/ze/MultipleAnnotation-627408298 "MultipleAnnotation"). +For sample, please refer to [MultipleAnnotation](https://www.syncfusion.com/downloads/support/directtrac/239374/ze/MultipleAnnotation-2076131568 "MultipleAnnotation"). ![Multiple Annotations](Annotation_images/annotation_img21.PNG)