鼠标滚轮横向滚动条

鼠标控制横向滚动条

  • 记录一下

记录一下

    private void ScrollViewer_PreviewMouseWheel(object sender, MouseWheelEventArgs e)
    {
        ScrollViewer scrollviewer = sender as ScrollViewer;
        if (e.Delta > 0)
            scrollviewer.LineLeft();
        else
            scrollviewer.LineRight();
        e.Handled = true;
    }

你可能感兴趣的:(鼠标滚轮横向滚动条)