/// <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 }
            });
        }
Beispiel #2
0
        public void AddWidgetType(System.Type widgetType)
        {
            NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend;

            core?.AddWidgetInfo(new Dictionary <System.Type, string> {
                { widgetType, ApplicationInfo.ApplicationId }
            });
        }
Beispiel #3
0
        /// <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);
     }
 }
Beispiel #5
0
 /// <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);
     }
 }
Beispiel #6
0
        public void AddWidgetType(Dictionary <System.Type, string> widgetTypes)
        {
            NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend;

            core?.AddWidgetInfo(widgetTypes);
        }
Beispiel #7
0
        public NUIWidgetApplication(Dictionary <System.Type, string> widgetTypes) : base(new NUIWidgetCoreBackend())
        {
            NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend;

            core?.RegisterWidgetInfo(widgetTypes);
        }