WPF Numeric UpDown 控件在哪里? [英] Where is the WPF Numeric UpDown control?
问题描述
进入第一个严肃的 WPF 项目.似乎缺少许多基本控件.具体来说,我正在寻找 Numeric UpDown 控件.有没有我错过的带外发行?真的不想写我自己的控件.
Getting into the first serious WPF project. It seems like there are a lot of basic controls flat out missing. Specifically, I am looking for the Numeric UpDown control. Was there an out of band release that I missed? Really don't feel like writing my own control.
我不想使用 WindowsFormHost 并在它上面放一个 WinForm ctl.我希望它完全是 WPF,没有任何遗留的垃圾.
I do not want to use the WindowsFormHost and plop a WinForm ctl on it. I want it to be fully WPF without any legacy junk.
谢谢
推荐答案
只需使用 IntegerUpDown 控件"nofollow noreferrer">Extended.Wpf.Toolkit你可以这样使用它:
Simply use the IntegerUpDown
control in the Extended.Wpf.Toolkit
You can use it like this:
将以下命名空间添加到您的 XAML:
Add to your XAML the following namespace:
xmlns:xctk=http://schemas.xceed.com/wpf/xaml/toolkit"
在您希望控件使用的 XAML 中:
In your XAML where you want the control use:
这篇关于WPF Numeric UpDown 控件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!