Hi,
I would change/update start date on the second datepicker when the user selected the date on the first datepicker.
How can I manage it?
Thanks.
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.
Roberto SalemiPosted Jan 21, 2015, 4:06 AM
Thanks.
Bhushan GawalePosted Jan 21, 2015, 1:24 AM
Roberto SalemiPosted Jan 20, 2015, 10:31 AM
This is my two Datepicker:
This is the function on eventhander:
private void fromDatePicker_SelectedDateChanged(object sender, SelectionChangedEventArgs e)
{
var fromPicker = sender as DatePicker;
DateTime? data = fromPicker.SelectedDate;
if (data != null)
{
toDatePicker.SelectedDate = data;
toDatePicker.DisplayDateStart = data;
}
}
Thanks!
Bhushan GawalePosted Jan 20, 2015, 7:03 AM