如何在WPF中更改列表框的垂直滚动条的重复按钮大小 [英] How to change a ListBox's Vertical Scrollbar's Repeat Button Size in WPF

查看:53
本文介绍了如何在WPF中更改列表框的垂直滚动条的重复按钮大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有垂直滚动条的ListBox控件.我想将重复按钮"的高度增加到更大,因为我们的UI是触摸兼容的.

I have a ListBox control with a vertical scrollbar. I would like to increase the Repeat Buttons' Height to something bigger because our UI is touch-compatible.

有一种简单的方法吗?

Is there a simple way to do it ?

感谢您和最诚挚的问候,

Thank you and best regards,

罗马尼亚

推荐答案

最简单的方法是修改垂直滚动条的ControlTemplate并将其更改为所需的内容:

Easiest is to modify the ControlTemplate for a vertical scrollbar and change it to what you want: ScrollBar ControlTemplate Example

这篇关于如何在WPF中更改列表框的垂直滚动条的重复按钮大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆