// DateTime private void DatePicker_SelectedDateChanged(object sender, SelectionChangedEventArgs e) { DatePicker picker = sender as DatePicker; TextBox box = picker.GetChild<TextBox>(); DatePicker_ProcessValue(box, false); }