Sweta Sinha

Sweta Sinha

  • NA
  • 51
  • 42.2k

Date Picker in WP8 set the range

Feb 23 2015 1:30 AM
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<DateTimeValueChangedEventArgs>(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?
 
 

Answers (1)