Articles in this section
Category / Section

How to enable snapping in WPF Diagram (SfDiagram)?

1 min read

The Snapping feature allows WPF Diagram (SfDiagram) objects to snap to the nearest interaction of gridlines or Object while being dragged or resized. This feature enables easier alignment during layout or design. We have provided SnapConstraints property to enable or disables Snapping in WPF Diagram (SfDiagram). We have provided code example to represent this. Please refer to the code example as below.


diagram.SnapSettings.SnapConstraints = SnapConstraints.All;


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