private void btnAddCategory_Click(object sender, RoutedEventArgs e) { AddCategory a = new AddCategory(); a.Owner = this; a.Show(); }