Пример #1
0
 public void RefreshStyles(ElementTheme theme, bool clearExisting = false)
 {
     if (theme == ElementTheme.Default && RequestedTheme == ElementTheme.Default)
     {
         RefreshStyles(AccentColor);
     }
     else
     {
         RefreshStyles(RequestedTheme.ToApplicationTheme(), clearExisting);
     }
 }
        public void RefreshStyles(ElementTheme theme)
        {
            DebugWrite($"Theme: {theme}");

            if (theme == ElementTheme.Default && RequestedTheme == ElementTheme.Default)
            {
                RefreshStyles(AccentColor);
            }
            else
            {
                RefreshStyles(RequestedTheme.ToApplicationTheme());
            }
        }