How to enable horizontal scrolling with mouse?

后端 未结 6 1895
旧巷少年郎
旧巷少年郎 2021-02-01 07:54

I cannot determine how to scroll horizontally using the mouse wheel. Vertical scrolling works well automatically, but I need to scroll my content horizontally. My code looks lik

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-01 08:34

    (sender as ScrollViewer).ScrollToHorizontalOffset( (sender as ScrollViewer).ContentHorizontalOffset    + e.Delta);
    

提交回复
热议问题