Back to Devexpress

SidePanel.AllowSnap Property

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

latest2.0 KB
Original Source

SidePanel.AllowSnap Property

Gets or sets whether or not borders of this SidePanel are allowed to snap to borders of other panels at runtime.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
public bool AllowSnap { get; set; }
vb
<DefaultValue(True)>
<DXCategory("Behavior")>
Public Property AllowSnap As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if borders of this panel can snap to other panels’ borders; otherwise, false.

|

Remarks

When a user drags a 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 SidePanel.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

SnapThreshold

SidePanel Class

SidePanel Members

DevExpress.XtraEditors Namespace