Hi,
I have added Date Picker in my windows phone app programmatically:-
this.datePicker = new DatePickerCustom();
this.datePicker.IsTabStop = false;
this.datePicker.MaxHeight = 0;
this.datePicker.ValueChanged += new EventHandler(datePicker_ValueChanged);
LayoutRoot.Children.Add(this.datePicker);
dp.Text = DateTime.Now.ToString("d MMMM yyyy HH:mm:ss");
I want to limit the datepicker by setting a min and max date.How can I do it in Windows Phone 8?
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Prasham SabadraPosted Feb 23, 2015, 1:39 AM
By default it seems that there is no default min and max values. But please have a look once at following thread:
http://stackoverflow.com/questions/9031509/limit-date-range-in-a-datepicker