public OverlayTickerTapeListItemViewModel(OverlayTickerTapeListItemModel item) : base(item.TotalToShow, item.FadeOut, item.Width, item.Height, item.TextFont, item.TextColor, item.BorderColor, item.BackgroundColor, OverlayListItemAlignmentTypeEnum.None, item.Effects.EntranceAnimation, item.Effects.ExitAnimation, item.HTML) { this.tickerTapeType = item.TickerTapeType; this.minimumAmountRequiredToShow = item.MinimumAmountRequiredToShow; this.BackgroundColor = ColorSchemes.HTMLColorSchemeDictionary.First().Key; this.BorderColor = ColorSchemes.HTMLColorSchemeDictionary.First().Key; }
public OverlayTickerTapeListItemControl(OverlayTickerTapeListItemModel item) { InitializeComponent(); this.viewModel = new OverlayTickerTapeListItemViewModel(item); }