private void MenuProjectSettings_OnClick(object sender, RoutedEventArgs e) { // Show project settings window. ProjectSettingsWindow dlg = new ProjectSettingsWindow { Owner = this, DataContext = this.Context.ProjectSettings }; dlg.ShowDialog(); // Update window title as soon as settings window is closed by the user. this.UpdateWindowTitle(); }