private void Window_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { this.mainWindow.SetStatusText(""); }