コード例 #1
0
        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;
        }
コード例 #2
0
        public OverlayTickerTapeListItemControl(OverlayTickerTapeListItemModel item)
        {
            InitializeComponent();

            this.viewModel = new OverlayTickerTapeListItemViewModel(item);
        }