Ejemplo n.º 1
0
        private static void SetResourceStyle(ResourceDictionary resourceDictionary, ThemeManagerStyle style)
        {
            if (resourceDictionary.Contains(style.TargetType))
            {
                resourceDictionary.Remove(style.TargetType);
            }

            resourceDictionary.Add(style.TargetType, style.NativeStyle);
        }
Ejemplo n.º 2
0
        private ThemeManagerStyle CreateThemeStyle(Type targetType)
        {
            var themeStyle = new ThemeManagerStyle {
                TargetType = targetType
            };

            _themeManagerStyles[targetType] = themeStyle;

            themeStyle.StyleService.NativeStyleChanged += OnNativeStyleChanged;

            return(themeStyle);
        }