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