public override void OnClick(bool shouldSelect) { if (shouldSelect) { if (MaterialTileListViewModel == null) { MaterialTileListViewModel = new MaterialTileListViewModel(this); } Parent.MaterialTileListViewModel = MaterialTileListViewModel; ContentBackgrund = BackgroundColors.TechnicianTileMouseOn; } else { ContentBackgrund = BackgroundColors.TechnicianTile; } IsSelected = shouldSelect; }
public MaterialTileViewModel(MaterialTileListViewModel parent) { Parent = parent; DeleteMaterialButton = new SymbolIconButtonViewModel(new DelegateCommand(OnDeleteMaterial), ViewConstants.DeleteSymbol); }