Articles in this section
Category / Section

How to enable undo or redo in WPF Diagram (SfDiagram)?

1 min read

WPF Diagram (SfDiagram) provides support to Undoable Constraint. This Undoable Constraints will not be in default Constraints. Please refer the following code example to enable Undo or Redo support in WPF Diagram (SfDiagram).

C#

IGraphInfo graphinfo = diagram.Info as IGraphInfo;
 
// Enable Undo/Redo
diagram.Constraints = GraphConstraints.Default | GraphConstraints.Undoable; 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied