When allowing users to select a date value in your applications, one of the obvious issues is ensuring that they aren’t allowed to pick a value like December 24th, 563. Thankfully, the developers for our Windows Phone team have incorporated some properties to help prevent this.
Step 1 – Min and Max Value Properties
The easy way to make this happen is to simply set a MinValue and MaxValue. In our scenario, we will say that we are scheduling appointments for some event in the future, therefore we can easily set out MinValue and MaxValue either via Xaml:
Or since we can’t hard-code a...