Back to Devexpress

SidePanel.SnapThreshold Property

windowsforms-devexpress-dot-xtraeditors-dot-sidepanel-bb37c149.md

latest2.1 KB
Original Source

SidePanel.SnapThreshold Property

Gets or sets the distance from the border of this SidePanel to the border of another panel, starting from which the panel snapping feature activates.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DefaultValue(20)]
[DXCategory("Behavior")]
public int SnapThreshold { get; set; }
vb
<DefaultValue(20)>
<DXCategory("Behavior")>
Public Property SnapThreshold As Integer

Property Value

TypeDefaultDescription
Int3220

An Int32 value that is the distance between panel borders, starting from which the panel snapping feature activates.

|

Remarks

When a user drags the border of a SidePanel, the panel snapping automatically sticks this border to a border of another panel when these borders are close to each other. This allows end-users to effortlessly align panels in a line. The animation below illustrates an example.

The SnapThreshold property specifies how close an end-user must move a panel border to another border before the snapping feature will automatically adjust its position.

See Also

Side Panel

SidePanel Class

SidePanel Members

DevExpress.XtraEditors Namespace