public TabItem CreateTab() { var content = new ShellView(); content.Loaded += ShellViewModel.Loaded; var tabItem = new TabItem { Header = Name, Content = content }; //do your gui stuff here EventSubscriber.Subscribe(); //content gives you access to the base xaml return(tabItem); }
public TabItem CreateTab() { var content = new ShellView(); content.Loaded += ShellViewModel.Loaded; var tabItem = new TabItem { Header = Name, Content = content }; //do your gui stuff here EventSubscriber.Subscribe(); //content gives you access to the base xaml return tabItem; }