wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-00971b0a.md
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
public Thickness ScrollMargin { get; set; }
Public Property ScrollMargin As Thickness
| 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.
|
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:
diagramControl.ScrollMargin = new Thickness(double.PositiveInfinity);
diagramControl.ScrollMargin = New Thickness(Double.PositiveInfinity)
See Also