System.Windows.Controls.ScrollViewer.ScrollInDirection C# (CSharp) Méthode

ScrollInDirection() private méthode

Scrolls the view in the specified direction.
Similar to WPF's corresponding ScrollViewer method.
private ScrollInDirection ( Key key ) : void
key Key Key corresponding to the direction.
Résultat void
        internal void ScrollInDirection(Key key) 
        {
            if (ScrollInfo != null) {
                switch (key) {
                case Key.Up:
                    ScrollInfo.LineUp ();
                    break;
                case Key.Down:
                    ScrollInfo.LineDown ();
                    break;
                case Key.Left:
                    ScrollInfo.LineLeft ();
                    break;
                case Key.Right:
                    ScrollInfo.LineRight ();
                    break;
                }
            }
        }