void windowSelectdateTime_Loaded(object sender, RoutedEventArgs e) { double height = txtDateTime.ActualHeight; double width = txtDateTime.ActualWidth; windowSelectdateTime.SetStartLocation(height, width); }