The DiagramScrollViewer type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| DiagramScrollViewer |
Initializes a new instance of the DiagramScrollViewer class.
|
Methods
| Name | Description | |
|---|---|---|
| GetViewport |
Gets the viewport (the part of the scroll region which is visible).
| |
| OnApplyTemplate |
Called by the framework when a template is applied to the control.
(Overrides FrameworkElement..::.OnApplyTemplate()()().) | |
| OnRenderSizeChanged |
Called whenever the rendering size of this DiagramScrollViewer changes.
(Overrides FrameworkElement..::.OnRenderSizeChanged(SizeChangedInfo).) | |
| SetViewport |
Sets the viewport (the part of the scroll region which is visible).
| |
| SizeToFit |
Adjusts the zoom values and the viewport to center the whole diagram into the viewport area.
| |
| TranslateViewPort |
Moves the viewport by the given x and y movement values. Changes the ExtraSpace property to allow for
infinite viewport panning.
|
Fields
| Name | Description | |
|---|---|---|
| CanShowScrollBarsProperty |
Identifies the CanShowScrollBars property.
| |
| ContentProperty |
Identifies the Content property.
| |
| DiagramSurfaceProperty |
Identifies the DiagramSurface property.
| |
| EffectiveZoomProperty |
Identifies the EffectiveZoom property.
| |
| ExtentProperty |
Identifies the Extent property.
| |
| ExtraSpaceProperty |
Identifies the ExtraSpace property.
| |
| HorizontalOffsetProperty |
Identifies the HorizontalOffset property.
| |
| MinimumExtraSpaceProperty |
Identifies the MinimumExtraSpace property.
| |
| VerticalOffsetProperty |
Identifies the VerticalOffset property.
| |
| ZoomModeProperty |
Identifies the ZoomMode property.
| |
| ZoomProperty |
Identifies the Zoom property.
|
Properties
| Name | Description | |
|---|---|---|
| CanShowScrollBars |
Gets or sets whether the DiagramScrollViewer is permitted to
display scroll bars. The default is true.
This is a dependency property.
| |
| Content |
Gets or sets the content.
This is a dependency property.
| |
| DiagramSurface |
Gets or sets the DiagramSurface for which this DiagramScrollViewer
provides scrolling functionality.
This is a dependency property.
| |
| EffectiveZoom |
Gets the effective zoom.
This is a dependency property.
| |
| Extent |
Gets the content extent.
This is a dependency property.
| |
| ExtraSpace |
Gets the extra space around the content.
This is a dependency property.
| |
| HorizontalOffset |
Gets the horizontal offset.
This is a dependency property.
| |
| MinimumExtraSpace |
Gets or sets the minimum extra space around the content (used for infinite scrolling).
This is a dependency property.
| |
| VerticalOffset |
Gets the vertical offset.
This is a dependency property.
| |
| Zoom |
Gets or sets the zoom.
This is a dependency property.
| |
| ZoomMode |
Gets or sets built-in zooming behavior.
This is a dependency property.
|