public MainWindow() { InitializeComponent(); vmd = new ActionTabViewModal(); actionTabs.ItemsSource = vmd.Tabs; }
public Window1() { InitializeComponent(); // Initialize viewModel vmd = new ActionTabViewModal(); // Bind the xaml TabControl to view model tabs actionTabs.ItemsSource = vmd.Tabs; // Populate the view model tabs vmd.Populate(); }