Exemplo n.º 1
0
 public static void SetInstance(DependencyObject element, StyleService value)
 {
     element.SetValue(InstanceProperty, value);
 }
Exemplo n.º 2
0
 internal StyleBase()
 {
     StyleService = new StyleService(this);
 }
Exemplo n.º 3
0
        private static void OnInstanceChanged(DependencyObject fre, StyleService oldStyleService, StyleService newStyleService)
        {
            if (oldStyleService != null)
            {
                fre.RemoveService <Runtime>();
            }

            if (newStyleService != null)
            {
                fre.SetService(new Runtime(newStyleService));
            }
        }