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); }
public void UpdateFooter(ISlideSection slide, int currentIndex) { CurrentThemeFooterVM = new SlideSectionViewModel(slide, currentIndex); }