Back to Devexpress

DiagramControl.ScrollMargin Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-00971b0a.md

latest2.0 KB
Original Source

DiagramControl.ScrollMargin Property

Gets or sets the size of the page’s outer indents that are displayed when you scroll the canvas to the edge. This is a dependency property.

Namespace : DevExpress.Xpf.Diagram

Assembly : DevExpress.Xpf.Diagram.v25.2.dll

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public Thickness ScrollMargin { get; set; }
vb
Public Property ScrollMargin As Thickness

Property Value

TypeDefaultDescription
Thickness20,20,20,20

The size of the page’s outer indents that are displayed when you scroll the canvas to the edge.

|

Remarks

The ScrollMargin property specifies the size (in pixels) of the diagram page’s visible part when you scroll to the edge.

Set the ScrollMargin property to a high value (real values depend on the window size and screen resolution) to allow users to scroll the DiagramControl only within the page:

csharp
diagramControl.ScrollMargin = new Thickness(double.PositiveInfinity);
vb
diagramControl.ScrollMargin = New Thickness(Double.PositiveInfinity)

See Also

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace