WPF 4.0 的 DateTimePicker [英] DateTimePicker for WPF 4.0

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

问题描述

根据这篇文章,.net 中有一个单独的 DatePicker 控件4.我试过了,我没有看到让它选择一天中的时间的好方法.

According to this post, there's a separate DatePicker control in .net 4. I've tried it, and I don't see a good way to also let it select the time of the day.

是否有一种简单的方法可以通过编辑 XAML 模板将 DatePicker 转换为 DateTimePicker?如果没有,为 WPF 4.0 获取 DateTimePicker 的最佳方法是什么?

Is there an easy way to transform DatePicker into DateTimePicker by editing XAML template? If not, what is the best way to get a DateTimePicker for WPF 4.0?

推荐答案

扩展 WPF 工具包DateTimePicker 与一天中的时间.

还有一篇关于 CP 的文章,其中有人创建了一个类似于 Winforms 的控件... 一个 WPF DateTimePicker,与 Winforms 中的那个一样

There is also an article over on CP where someone created a control that works like the Winforms one... A WPF DateTimePicker That Works Like the One in Winforms

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

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