Northwoods.GoWPF 1.3.5 Assembly
ComputeAutoScrollPosition Method
See Also  Send Feedback
Northwoods.GoXam Namespace > DiagramPanel Class : ComputeAutoScrollPosition Method

viewPnt
The mouse point, in control coordinates.
This method is called to determine the next position in the document for this view, given a point at which the user is dragging the mouse.

Syntax

Visual Basic (Declaration) 
Protected Overridable Function ComputeAutoScrollPosition( _
   ByVal viewPnt As Point _
) As Point
C# 
protected virtual Point ComputeAutoScrollPosition( 
   Point viewPnt
)

Parameters

viewPnt
The mouse point, in control coordinates.

Remarks

This uses the AutoScrollRegion, ScrollHorizontalLineChange, and ScrollVerticalLineChange properties to calculate a new DiagramPanel.Position. The closer the point is to the edge of the view, the larger a multiple of the ScrollHorizontalLineChange or ScrollVerticalLineChange is used as a scroll step in that direction.

Requirements

See Also

© 2012 All Rights Reserved.