/// <summary> /// The default constructor with stylesheet. /// </summary> /// <remarks>Widget ID will be replaced as the application ID.</remarks> /// <param name="widgetType">Derived widget class type.</param> /// <param name="styleSheet">The styleSheet url.</param> /// <since_tizen> 4 </since_tizen> public NUIWidgetApplication(System.Type widgetType, string styleSheet) : base(new NUIWidgetCoreBackend(styleSheet)) { NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend; core?.RegisterWidgetInfo(new Dictionary <System.Type, string> { { widgetType, ApplicationInfo.ApplicationId } }); }
public void AddWidgetType(System.Type widgetType) { NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend; core?.AddWidgetInfo(new Dictionary <System.Type, string> { { widgetType, ApplicationInfo.ApplicationId } }); }
/// <summary> /// The default constructor with stylesheet. /// </summary> /// <remarks>Widget ID will be replaced as the application ID.</remarks> /// <param name="widgetType">Derived widget class type.</param> /// <param name="styleSheet">The styleSheet url.</param> /// <since_tizen> 4 </since_tizen> public NUIWidgetApplication(System.Type widgetType, string styleSheet) : base(new NUIWidgetCoreBackend(styleSheet)) { Registry.Instance.SavedApplicationThread = Thread.CurrentThread; NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend; core?.RegisterWidgetInfo(new Dictionary <System.Type, string> { { widgetType, ApplicationInfo.ApplicationId } }); }
/// <summary> /// The constructor for multi widget class and instance. /// </summary> /// <param name="widgetTypes">List of derived widget class type.</param> public NUIWidgetApplication(Dictionary <System.Type, string> widgetTypes) : base(new NUIWidgetCoreBackend()) { if (widgetTypes == null) { throw new InvalidOperationException("Dictionary is null"); } else { NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend; core?.RegisterWidgetInfo(widgetTypes); } }
/// <summary> /// The constructor for multi widget class and instance. /// </summary> /// <param name="widgetTypes">List of derived widget class type.</param> public NUIWidgetApplication(Dictionary <System.Type, string> widgetTypes) : base(new NUIWidgetCoreBackend()) { if (widgetTypes == null) { throw new InvalidOperationException("Dictionary is null"); } else { Registry.Instance.SavedApplicationThread = Thread.CurrentThread; NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend; core?.RegisterWidgetInfo(widgetTypes); } }
public void AddWidgetType(Dictionary <System.Type, string> widgetTypes) { NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend; core?.AddWidgetInfo(widgetTypes); }
public NUIWidgetApplication(Dictionary <System.Type, string> widgetTypes) : base(new NUIWidgetCoreBackend()) { NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend; core?.RegisterWidgetInfo(widgetTypes); }