// About command: display YellowPadAboutDialog. void AboutOnClick(object sender, RoutedEventArgs args) { YellowPadAboutDialog dlg = new YellowPadAboutDialog(); dlg.Owner = this; dlg.ShowDialog(); }