コード例 #1
0
ファイル: Spinner.cs プロジェクト: yunmiha/TizenFX
 /// <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";
     }
 }
コード例 #2
0
        public static void ThemeOverlay()
        {
            if (!Window.IsPreloaded)
            {
                if (File.Exists(_themeFilePath))
                {
                    AddThemeOverlay(_themeFilePath);
                }

                if (Elementary.GetProfile() == "tv" && File.Exists(_tvThemeFilePath))
                {
                    AddThemeOverlay(_tvThemeFilePath);
                }
            }
        }
コード例 #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();
            }
        }