コード例 #1
0
        public void UpdateSlide(ISlideSection slide, int currentIndex)
        {
            var themes = Themes.GetSingleton();
            var used   = !string.IsNullOrWhiteSpace(themes.GetBackgroundImage(currentIndex));

            BackGroundUsed = used;

            if (used)
            {
                BackgroundImage = AppDomain.CurrentDomain.BaseDirectory + "\\" + themes.GetBackgroundImage(currentIndex);
            }

            if (!BackGroundUsed)
            {
                BackgroundColor = new SolidColorBrush((Color)ColorConverter.ConvertFromString(themes.GetBackgroundColor(currentIndex)));
            }

            CurrentSlideVM = new SlideSectionViewModel(slide, currentIndex);
        }
コード例 #2
0
 public void UpdateFooter(ISlideSection slide, int currentIndex)
 {
     CurrentThemeFooterVM = new SlideSectionViewModel(slide, currentIndex);
 }