限制日期时间选择器日期禁用未来日期 [英] Limiting DateTime Picker date disable future dates

查看:569
本文介绍了限制日期时间选择器日期禁用未来日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法限制DateTime Picker控件不显示大于当前日期的日期,因此不会选中它们。我注意到其他Windows设备似乎有一个MaxDate属性似乎不适用于Windows手机这是正确的
如果有任何建议如何实现这一点。

Is there a way to limit a DateTime Picker control to not display Dates greater than the current date so they are not selected. I noticed for other windows devices there appears to be a MaxDate Property doesn't seem to work for windows phone is this correct if so any suggestions on how to achieve this.

谢谢

B

推荐答案

我认为只有最大年份属性不是最大日期
I think there is only a max year property not a max date


这篇关于限制日期时间选择器日期禁用未来日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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