public void CreateCells(List <CellData> cellsDataList) { foreach (var cellData in cellsDataList) { CellsCollection.Add(new CellBlock(_mainBlockViewModel, cellData)); CellsCollection.Last().PropertyChanged += RowBlockViewModel_PropertyChanged; CellsCollection.Last().SelectMode = _mainBlockViewModel.SelectMode; } }