public static void HookupEvents(InstanceWidget widget) { #if WINRT throw new NotImplementedException(); #else var type = widget.GetType(); if (type.Assembly == etoAssembly) { return; } widget.HandleDefaultEvents(GetEvents(type)); #endif }
internal static void OnStyleWidgetDefaults(InstanceWidget widget) { if (widget != null) { var styleHandlers = GetStyleList(widget.GetType(), false); if (styleHandlers != null) { foreach (var styleHandler in styleHandlers) { styleHandler(widget); } } } }
public static bool IsDefault(InstanceWidget widget, string identifier) { #if WINRT throw new NotImplementedException(); #else var type = widget.GetType(); if (type.Assembly == etoAssembly) { return(false); } var events = GetEvents(type); return(Array.IndexOf(events, identifier) >= 0); #endif }