Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Wpf.Diagram

Declaration

public Thickness ScrollMargin { get; set; }

Property Value

Type Default Description
Thickness 20,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.

DiagramControl - ScrollMargin Default

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:

diagramControl.ScrollMargin = new Thickness(double.PositiveInfinity);

DiagramControl - ScrollMargin Custom

See Also