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

modelPnt
the current mouse point, in model coordinates
Start or continue automatically scrolling the view during a mouse drag.

Syntax

Visual Basic (Declaration) 
Public Sub DoAutoScroll( _
   ByVal modelPnt As Point _
) 
C# 
public void DoAutoScroll( 
   Point modelPnt
)

Parameters

modelPnt
the current mouse point, in model coordinates

Remarks

As soon ComputeAutoScrollPosition returns a new DiagramPanel.Position value, this method starts a Timer that waits for AutoScrollDelay milliseconds. After waiting, it repeatedly sets DiagramPanel.Position to the latest ComputeAutoScrollPosition value, until the position does not change (presumably because the Diagram's last mouse point is no longer in the autoscroll margin). Setting this view's DiagramPanel.Position occurs each AutoScrollTime milliseconds.

This method is normally called by those tools that want to support auto-scrolling during a mouse move, such as dragging. The timer is stopped when the mouse leaves this view.

Requirements

See Also

© 2012 All Rights Reserved.