WPF DateTimePicker工具 [英] WPF DateTimePicker implement

查看:340
本文介绍了WPF DateTimePicker工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在WPF中获得了DateTimePicker工具吗?非常感谢

Anyone got the DateTimePicker implement in WPF? Thanks so much

推荐答案

http://datetimepickerwpf.codeplex.com/ [< ^ ]


请注意:以下答案仅适用于3.5框架下的WPF,因为NET 4.0运行时具有其自己的日期时间控件.

默认情况下,WPF 3.5不像Winforms一样带有日期时间选择器.

但是,日期选择器已添加到Microsoft生产的WPF工具包中,可以在此处下载.我想它将在将来的版本中成为框架的一部分.

添加对WPFToolkit.dll的引用很简单,可以在工具框中看到它,并按照网站上的说明与您的应用程序一起分发.

在此之前,其他人已经创建了第三方选择器(您可能更喜欢),或者使用了不太理想的解决方案,即在WPF应用程序中使用Winforms控件.
Please Note: The following answer only applied to WPF under the 3.5 Framework as NET 4.0 runtime has it''s own datetime control.

By default WPF 3.5 does not come with a date time picker like winforms.

However a date picker has been added in the WPF tool kit produced by Microsoft which can be downloaded here. I guess it will become part of the framework in a future release.

It is simple to add a reference to the WPFToolkit.dll, see it in the tool box and distribute with your application by following the instructions on the website.

Before this was available other people had created 3rd party pickers (which you may prefer) or alternatively used the less ideal solution of using the winforms control in a WPF application.


这篇关于WPF DateTimePicker工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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