How to increase scrollbar width in WPF ScrollViewer?

前端 未结 4 1281
臣服心动
臣服心动 2020-12-01 04:33

I am working on a touch screen on a small device and the custom width of the scroll-bar is no good as one of my requirements is that everything needs to be doable by finger

4条回答
  •  粉色の甜心
    2020-12-01 05:06

    And if you don't want to use XAML, you can do it in the Application's constructor, e.g.

    using System.Windows;
    
    public partial class App
    {
        public App()
        {
            Resources.Add(SystemParameters.VerticalScrollBarWidthKey, 50d);
            Resources.Add(SystemParameters.HorizontalScrollBarHeightKey, 50d);
        }
    }
    

提交回复
热议问题