Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wpf/Diagram/Snapping/CustomSnapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@ diagram.SnapSettings = new SnapSettings()

## See Also

[How to add gridlines for diagram](https://help.syncfusion.com/wpf/diagram/gridlines)
[How to add gridlines for diagram?](https://help.syncfusion.com/wpf/diagram/gridlines)

[How to add ruler for diagram](/wpf/diagram/rulers)
[How to add ruler for diagram?](/wpf/diagram/rulers)
6 changes: 3 additions & 3 deletions wpf/Diagram/Snapping/DefineSnapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ documentation: ug

# Snapping in WPF Diagram (SfDiagram)

When you draw, resize, or move a diagramming element in the page, you can set it, so that it will align or snap to the nearest intersection in the page even when the grid is visible or not. However, you can control the alignment and snap-to capabilities of elements by using the snapping option of SfDiagram.
When you draw, resize, or move a diagramming element in the page, you can set it, so that it will align or snap to the nearest intersection in the page even when the grid is visible or not. However, you can control the alignment and snap-to capabilities of elements by using the snapping option of `SfDiagram`.

The `SnapSettings` class and its properties allows you to snap the shapes to the ruler subdivisions more easily.

Expand Down Expand Up @@ -71,7 +71,7 @@ diagram.SnapSettings.SnapToObject = SnapToObject.All;

## How to change the snap indication style

When snapping, cyan shade color indication lines will be shown. These indication lines styles can be customized by using the [`SnapIndicatorStyle`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.SnapSettings.html#Syncfusion_UI_Xaml_Diagram_SnapSettings_SnapIndicatorStyle) property of SnapSettings class.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the highlight for the SnapIndicatorStyle property.

When snapping, cyan shade color indication lines will be shown. These indication lines styles can be customized by using the [SnapIndicatorStyle](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.SnapSettings.html#Syncfusion_UI_Xaml_Diagram_SnapSettings_SnapIndicatorStyle) property of `SnapSettings` class.

{% tabs %}
{% highlight xaml %}
Expand Down Expand Up @@ -118,7 +118,7 @@ diagram.SnapSettings = new SnapSettings()

This feature allows the diagram objects to snap to the nearest interaction of gridlines while being dragged or resized. This feature enables easier alignment during layout or design.

Snapping to gridlines can be enabled or disabled with the [SnapConstraints](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.SnapConstraints.html) property of SnapSettings. Default value is None.
Snapping to gridlines can be enabled or disabled with the [SnapConstraints](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.SnapConstraints.html) property of `SnapSettings`. Default value is None.

{% tabs %}
{% highlight xaml %}
Expand Down