WPF数字UpDown控件在哪里? [英] Where is the WPF Numeric UpDown control?

查看:364
本文介绍了WPF数字UpDown控件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

进入第一个严肃的WPF项目.似乎有很多基本控件完全失踪了.具体来说,我正在寻找数字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.

谢谢

推荐答案

只需在 xtended wpf工具包 您可以像这样使用它:

Simply use the IntegerUpDown control in the xtended wpf toolkit You can use it like this:

  1. 将以下名称空间添加到您的XAML:

  1. 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:

<xctk:IntegerUpDown Name="myUpDownControl" />

这篇关于WPF数字UpDown控件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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