internal static void OnStyleWidgetDefaults(Widget.IHandler handler) { if (handler == null) { return; } var widget = handler.Widget; if (widget == null) { return; } var styleHandlers = GetCascadingStyleList(handler.GetType()); if (styleHandlers == null) { return; } for (int i = 0; i < styleHandlers.Count; i++) { var styleHandler = styleHandlers[i]; styleHandler(widget); } }
internal static void OnStyleWidgetDefaults(Widget.IHandler handler) { if (handler != null) { var styleHandlers = GetStyleList(handler.GetType(), false); if (styleHandlers != null) { var widget = handler.Widget; if (widget != null) { foreach (var styleHandler in styleHandlers) { styleHandler(widget); } } } } }