private void ViewPunchesButton_Click(object sender, RoutedEventArgs e) { ViewPunchesWindow window = new ViewPunchesWindow(); window.Owner = this.Parent as Window; window.WindowStartupLocation = WindowStartupLocation.CenterOwner; window.Show(); }
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e) { ViewPunchesWindow window = new ViewPunchesWindow(); window.Owner = this.Parent as Window; window.WindowStartupLocation = WindowStartupLocation.CenterOwner; window.ShowDialog(); e.Handled = true; }