public GameBoardView(GameBoard gameBoard) { DataContext = gameBoard; Cells = new CellView[gameBoard.ActualCells.GetLength(0), gameBoard.ActualCells.GetLength(1)]; gameBoard.ActualCells.ForEach((point, cell) => Cells.Set(point, new CellView { Point = point, DataContext = cell })); }
public GameBoardViewModel(GameBoard gameBoard) : base(gameBoard) {}