How could I reach the string value of DatePicker which located in another WPF window?
Something like that (on button click):
private void button1_Click(object sender, RoutedEventArgs e)
{
datePicker1.Text = datePickerFromAnotherWindow.Text;//error: the name does not exist in the current context
}
DatePicker is from default WPF toolset