【问题标题】:increase width of the button spinner in numericUpDown in WPF在 WPF 中的 numericUpDown 中增加按钮微调器的宽度
【发布时间】:2014-09-04 03:54:43
【问题描述】:

我刚刚开始使用 WPF,现在使用扩展 WPF 工具包中的 NumericUpDown control。但是,ButtonSpinners 在我的应用程序中非常薄,我还没有找到任何属性来更改它。无论如何要增加宽度?

谢谢!

【问题讨论】:

标签: c# wpf toolkit numericupdown


【解决方案1】:

存在一个属性:ButtonSpinnerWidth

<xctk:IntegerUpDown Value="{Binding Count}" 
                    Width="150"
                    Height="100"
                    Margin="8" 
                    Padding="0 0 15 0"
                    ButtonSpinnerWidth="100"/>

所以你会得到类似的东西:

在模板的绑定中找到该属性:

“鼠标右键”->“编辑模板”->“编辑副本”

来源:https://social.msdn.microsoft.com/Forums/exchange/en-US/2bf227ed-7c6e-4517-9019-54eb8fce6bf7/how-to-incrase-tough-target-size-for-updown-arrows-of-a-integerupdown-control-in-the-wpf-toolkit?forum=wpf

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-05-21
    • 1970-01-01
    • 2023-04-06
    • 2013-05-07
    • 2019-06-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多