private void Selecionar_Click(object sender, RoutedEventArgs e) { (Application.Current.MainWindow as MainWindow).CrianovaAba(); }
public void CrianovaAba() { UserControl Nuser = new UserControl(); ClosableTab theTabItem = new ClosableTab(); theTabItem.Title = UserControl._Novomaterial; theTabItem.Content = Nuser; TabControlMaterial.Items.Add(theTabItem); theTabItem.Focus(); }
CrianovaAba();
Application.Current.MainWindow
as
null
MainWindow
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)