// creating the view model and biniding data. public void SetSingelMod(Model m, MainWindow main) { dashViewModel = new DashViewModel(m); DataContext = dashViewModel; // updating the board. dashViewModel.UpdateData(); this.ancestor = main; }
public DashBoard() { InitializeComponent(); dashViewModel = new DashViewModel(new Model()); }