public MainWindow()
        {
            InitializeComponent();

            vmd = new ActionTabViewModal();
            actionTabs.ItemsSource = vmd.Tabs;
        }
예제 #2
0
 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();
 }