private static void ScrollDiagram(DiagramScrollingInfo diagramInfo, RadDiagram diagram) { switch (diagramInfo.AutoScrollingDirection) { case ScrollingDirection.Up: diagram.Scroll(0, ConnectionManipulationAutoScrollBehavior.ScrollingStep); break; case ScrollingDirection.Down: diagram.Scroll(0, -ConnectionManipulationAutoScrollBehavior.ScrollingStep); break; case ScrollingDirection.Right: diagram.Scroll(-ConnectionManipulationAutoScrollBehavior.ScrollingStep, 0); break; case ScrollingDirection.Left: diagram.Scroll(ConnectionManipulationAutoScrollBehavior.ScrollingStep, 0); break; } }