locked
How to set validation on DatePicker.

    Question

  • Hello,

    How to to set validation on DatePicker control, like user should not be able to select next date from current.

    Like if today is 18-12-2014, date picker must not allow to select 19-12-2014.

    Thanks in advance.


    • Edited by zee_patel Thursday, December 18, 2014 1:02 PM
    Thursday, December 18, 2014 1:02 PM

Answers

  • It seems no such properties, only can set MinYear and MaxYear.

    If you need the function, can use 3rd controls, like: Windows Store Application Library

    There also has souce code can be downloaded.

     

    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。


    • Edited by Bill ChungMVP Thursday, December 18, 2014 3:33 PM
    • Marked as answer by zee_patel Monday, December 22, 2014 5:20 AM
    Thursday, December 18, 2014 3:33 PM