private void Cat_Button_Click(object sender, RoutedEventArgs e) { var dialog = new NewCategoryWindow { Owner = this //Make this window the owner of the popup, so that it will show in the center. }; dialog.Show(); }
public AddCategoryTestCommand(TestListPresenter presenter, NewCategoryWindow newCategoryWindow) { this.presenter = presenter; window = newCategoryWindow; }