public CellBlock(VMMainBlockCellNull mainBlock, CellData cellData, int x = 0, int y = 0) { InitializeComponent(); DataContext = this; _cellData = cellData; _cellData.PropertyChanged += CellData_PropertyChanged; SetParams(); }
public RowBlock(VMMainBlockCellNull mainBlock) { InitializeComponent(); _mainBlockViewModel = mainBlock; _baseBlock = new BaseBlock(mainBlock, this); var vm = DataContext as VMRowBlock; if (vm != null) { vm.PropertyChanged += RowBlockViewModel_PropertyChanged; } }
public Workspace(VMMainBlockCellNull vm) { InitializeComponent(); _mainBlockViewModel = vm; }