public MainWindow() { InitializeComponent(); formView = new OrdersRootViewModel(tabControl.Items); this.DataContext = formView; }
public Window1() { InitializeComponent(); var formView = new OrdersRootViewModel(null); this.DataContext = formView; }