private void Button_Click_Upload(object sender, RoutedEventArgs e) { ((w)App.Current.MainWindow).textBox_1.Text = "Your Text"; //or ((w)Window.GetWindow(this)).textBox_1.Text = "Your Text"; }