public TileSettings(TileData tileData) { Name = tileData.Name; Uri = tileData.Uri; Image = tileData.SquareFinal; BackgroundColor = tileData.Color; ShowLabel = tileData.LabelType != LabelTypes.NoLabel; UseDarkLabel = tileData.LabelType == LabelTypes.DarkLabel; LinkType = tileData.LinkType; }
public TileDataViewModel(TileData data,ITileCreator creator) { Model = data; TileCreator = creator; UpdateAvailableLinkTypes(); var dataChanged = (data as INotifyPropertyChanged); if(dataChanged!= null) { dataChanged.PropertyChanged += (o, e) => { UpdateAvailableLinkTypes(); }; } }