Exemple #1
0
 /// <summary>
 /// Creates and initializes a new instance of the Spinner class.
 /// </summary>
 /// <param name="parent">The parent of new Spinner instance</param>
 /// <since_tizen> preview </since_tizen>
 public Spinner(EvasObject parent) : base(parent)
 {
     if (Elementary.GetProfile() == "tv")
     {
         Style = "vertical";
     }
 }
Exemple #2
0
        public static void ThemeOverlay()
        {
            if (!Window.IsPreloaded)
            {
                if (File.Exists(_themeFilePath))
                {
                    AddThemeOverlay(_themeFilePath);
                }

                if (Elementary.GetProfile() == "tv" && File.Exists(_tvThemeFilePath))
                {
                    AddThemeOverlay(_tvThemeFilePath);
                }
            }
        }
Exemple #3
0
        internal PreloadedWindow(bool useBaseLayout = true) : base("PreloadWindow")
        {
            s_precreated = this;
            if (useBaseLayout)
            {
                InitializeBaseLayout();
            }
            WarmupWidgets();
            BackButtonPressed += DummyHandler;
            BackButtonPressed -= DummyHandler;
            void DummyHandler(object sender, System.EventArgs e)
            {
            }

            if (Elementary.GetProfile() == "wearable")
            {
                WarmupWearableWidgets();
            }
        }