Make the TVHome uses application api for Recent apps
authorcskim <charles0.kim@samsung.com>
Mon, 27 Mar 2017 05:50:10 +0000 (14:50 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:51 +0000 (18:34 +0900)
Change-Id: I250d28f60537a52d29a15d215bd97b74b154d92b

16 files changed:
LibTVRefCommonPortable/Models/AppShortcutController.cs
LibTVRefCommonPortable/Models/RecentShortcutController.cs
LibTVRefCommonPortable/Models/SettingShortcutController.cs
LibTVRefCommonPortable/Utils/AppShortcutStorage.cs
LibTVRefCommonPortable/Utils/IApplicationManagerAPIs.cs
LibTVRefCommonTizen/Ports/ApplicationManagerPort.cs
TVApps/TVApps.TizenTV/Renderer/NinePatchImageRenderer.cs
TVApps/TVApps/Views/MainPage.xaml.cs
TVHome/TVHome.TizenTV/TVHome.TizenTV.cs
TVHome/TVHome.TizenTV/bin/Debug/TVHome.TizenTV.tpk
TVHome/TVHome/TVHome.cs
TVHome/TVHome/ViewModels/IHomeViewModel.cs
TVHome/TVHome/ViewModels/MainPageViewModel.cs
TVHome/TVHome/Views/MainPage.xaml
TVHome/TVHome/Views/MainPage.xaml.cs
TVHome/TVHome/Views/SubThumbnailPanel.xaml

index cdf27ce4c1237f791336c8b6c5ce9665fa4744e2..e432e4f0262b40442518b3d27dc61ff0629a6d41 100755 (executable)
@@ -148,10 +148,13 @@ namespace LibTVRefCommonPortable.Models
                 string appLabel;
                 string appIconPath;
 
-                appInfo.TryGetValue("Label", out appLabel);
+                if (appInfo.TryGetValue("Label", out appLabel) == false)
+                {
+                    appLabel = "No Name";
+                }
+
                 appInfo.TryGetValue("IconPath", out appIconPath);
 
-                DebuggingUtils.Dbg("AppID: " + appShortcutInfo.AppID + ", Label : " + appLabel);
                 var defaultStateDescription = new StateDescription()
                 {
                     Label = appLabel,
index 30d0ece50905702d2faa2a4bb12fa02239956ffa..0de468b79c315d96e813d1c59d1814b8013716b2 100644 (file)
@@ -47,21 +47,21 @@ namespace LibTVRefCommonPortable.Models
             return false;
         }
 
-        public async Task<IEnumerable<RecentShortcutInfo>> GetList()
+        public IEnumerable<RecentShortcutInfo> GetList()
         {
             IApplicationManagerAPIs applicationManagerPort = DependencyService.Get<IApplicationManagerAPIs>();
             List<RecentShortcutInfo> recentShortcutInfoList = new List<RecentShortcutInfo>();
 
-            var applicationList = await applicationManagerPort.GetRecentApplications();
-            foreach (KeyValuePair<string, string[]> item in applicationList)
+            var recentApps = applicationManagerPort.GetRecentApplications();
+            foreach (var item in recentApps)
             {
                 var defaultStateDescription = new StateDescription()
                 {
-                    Label = item.Value[0],
-                    IconPath = item.Value[2],
+                    Label = item.instanceLabel,
+                    IconPath = item.iconPath,
                     Action = new AppControlAction()
                     {
-                        AppID = item.Key
+                        AppID = item.appID,
                     }
                 };
                 var recentShortcutInfo = new RecentShortcutInfo();
index 3f3557816e840b2c642675190ea641b8a82c6d3c..448dfd919d0438f1f62a3fc22422444397db6c06 100755 (executable)
@@ -27,6 +27,7 @@ namespace LibTVRefCommonPortable.Models
 
         public SettingShortcutController()
         {
+            // TODO : read from file!!!
             ShortcutInfo settings = SettingShortcutFactory.Get(SettingID.SETTINGS);
             settingShortcutList.Add(settings);
 
@@ -41,7 +42,7 @@ namespace LibTVRefCommonPortable.Models
 
         public IEnumerable<ShortcutInfo> GetList()
         {
-            return settingShortcutList ?? null;
+            return new List<ShortcutInfo>(settingShortcutList);
         }
 
     }
index a5865eb5e4f18558391f5b77c5f69d167a07d514..acc477721723e3826bee3849eacf2c0dde83afda 100644 (file)
@@ -54,36 +54,16 @@ namespace LibTVRefCommonPortable.Utils
                 AppID = "org.tizen.settings",
             });
 
-            pinnedAppsInfo.Add(new AppShortcutInfo()
-            {
-                AppID = "org.tizen.chromium-efl.ubrowser",
-            });
-
             pinnedAppsInfo.Add(new AppShortcutInfo()
             {
                 AppID = "org.tizen.dpm-toolkit",
             });
 
-            pinnedAppsInfo.Add(new AppShortcutInfo()
-            {
-                AppID = "org.tizen.infosquare",
-            });
-
             pinnedAppsInfo.Add(new AppShortcutInfo()
             {
                 AppID = "org.tizen.mediahub",
             });
 
-            pinnedAppsInfo.Add(new AppShortcutInfo()
-            {
-                AppID = "org.tizen.heremaps-uc",
-            });
-
-            pinnedAppsInfo.Add(new AppShortcutInfo()
-            {
-                AppID = "org.tizen.ode",
-            });
-
             pinnedAppsInfo.Add(new AppShortcutInfo()
             {
                 AppID = "org.tizen.apps",
index df1c36934dda12be34efe57bd874ac330d2b20fb..7a8f693769ce4bda44a2161f797551e11fe42d75 100644 (file)
@@ -22,10 +22,21 @@ using System.Threading.Tasks;
 
 namespace LibTVRefCommonPortable.Utils
 {
+    public class RecentApp
+    {
+        public String instanceID;
+        public String instanceLabel;
+        public String appID;
+        public String applabel;
+        public String iconPath;
+        public DateTime launchedTime;
+        public String uri;
+    }
+
     public interface IApplicationManagerAPIs
     {
         Task<Dictionary<string, string[]>> GetAllInstalledApplication();
-        Task<Dictionary<string, string[]>> GetRecentApplications();
+        IEnumerable<RecentApp> GetRecentApplications();
         Dictionary<string, string> GetInstalledApplication(string applicationId);
     }
 }
index bb98cb7105e84474b0612167720f21508525a465..29956183b45a45f610d6b4cf3ab910d90aacd8a0 100644 (file)
@@ -39,27 +39,30 @@ namespace LibTVRefCommonTizen.Ports
             DebuggingUtils.Dbg(launchedEventArgs.ApplicationRunningContext.ApplicationId + " launched");
         }
 
-        public async Task<Dictionary<string, string[]>> GetRecentApplications()
+        public IEnumerable<RecentApp> GetRecentApplications()
         {
-            // RUA가 지원되지 않으므로 일단 설치된 app들을 가져와 본다
-            // TODO: RUA로 대체한다
-            Dictionary<string, string[]> resultList = new Dictionary<string, string[]>();
-            var applicationList = await ApplicationManager.GetInstalledApplicationsAsync();
-            string[] result;
+            List<RecentApp> resultList = new List<RecentApp>();
+            IEnumerable<RecentApplicationInfo> recentApps = ApplicationManager.GetRecentApplications();
 
-            foreach (ApplicationInfo appInfo in applicationList)
+            foreach (var app in recentApps)
             {
-                if (appInfo.Label == null ||
-                    appInfo.ApplicationId == null)
+                if (app.IsNoDisplay ||
+                    app.ApplicationId == null ||
+                    app.ApplicationId.Length < 1)
                 {
                     continue;
                 }
 
-                result = new string[3];
-                result[0] = appInfo.Label;
-                result[1] = appInfo.ApplicationId;
-                result[2] = (System.IO.File.Exists(appInfo.IconPath)) ? appInfo.IconPath : DefaultAppIcon;
-                resultList.Add(appInfo.ApplicationId, result);
+                resultList.Add(new RecentApp()
+                {
+                    instanceID = app.InstanceId,
+                    instanceLabel = app.InstanceName,
+                    appID = app.ApplicationId,
+                    applabel = (app.Label == null || app.Label.Length < 1) ? "No Name" : app.Label,
+                    iconPath = app.IconPath,
+                    launchedTime = app.LaunchTime,
+                    uri = app.Uri,
+                });
             }
 
             return resultList;
index f9b18f97b2d9e8a76397b4fc9b5284f5431c6e10..a83f448cda819d95f679a4d2f56a68f7c5179fd3 100644 (file)
@@ -42,6 +42,7 @@ namespace TVApps.TizenTV.Renderer
             {
                 UpdateBorder();
             }
+
             base.OnElementPropertyChanged(sender, e);
         }
 
index 50f64090d46d05a872a7b37eb21db2f8bd04e208..83b5481562c649cdc62433c9c77407e66adec06f 100644 (file)
@@ -35,12 +35,14 @@ namespace TVApps.Views
             get { return (AppsStatus)GetValue(CurrentStatusProperty); }
             set { SetValue(CurrentStatusProperty, value); }
         }
+
         /*
         private async void PlayHideAnimation()
         {
             // TODO : Apps Out Animation.
         }
         */
+
         private async void PlayShowAnimation()
         {
             await AppList.TranslateTo(0, 12, 0);
@@ -114,8 +116,6 @@ namespace TVApps.Views
 
         private async Task<bool> OnBackKeyPressedAtMain()
         {
-            DebuggingUtils.Dbg("OnBackKeyPressedAtMain - first item focused? " + AppList.IsFirstItemFocused);
-
             if (CurrentStatus != AppsStatus.Default)
             {
                 MessagingCenter.Send<MainPage, string>(this, "ChangeCurrentStatus", AppsStatus.Default.ToString());
@@ -124,7 +124,6 @@ namespace TVApps.Views
 
             if (!AppList.IsFirstItemFocused)
             {
-                DebuggingUtils.Dbg("OnBackKeyPressedAtMain - focus move");
                 AppList.InitializeFocus();
                 return true;
             }
@@ -132,7 +131,6 @@ namespace TVApps.Views
             var answer = await DisplayAlert("QUIT", "Do you want to quit?", "YES", "NO");
             if (answer)
             {
-                DebuggingUtils.Dbg("OnBackKeyPressedAtMain - Yes");
                 AppControlUtils.SelfTerminate();
                 return true;
             }
@@ -142,7 +140,6 @@ namespace TVApps.Views
 
         protected override bool OnBackButtonPressed()
         {
-            DebuggingUtils.Dbg("OnBackButtonPressed");
             SynchronizationContext.Current.Post(async (o) =>
             {
                 await OnBackKeyPressedAtMain();
index 8adcef5337434a7649b665ce69c2b02601ef7415..b88fe17ee7239d5e5318723f5002b1be5dfac2b8 100755 (executable)
@@ -50,7 +50,9 @@ namespace TVHome.TizenTV
             AppResourcePath = DirectoryInfo.Resource;
             AppDataPath = DirectoryInfo.Data;
 
+            DbgPort.D("-----------------------------------");
             DbgPort.D("Home application is being loaded...");
+            DbgPort.D("-----------------------------------");
             LoadApplication(app);
 
             PackageManagerPort.RegisterCallbacks(notification);
@@ -98,10 +100,6 @@ namespace TVHome.TizenTV
 
         protected override void OnAppControlReceived(AppControlReceivedEventArgs e)
         {
-            DbgPort.D("OnAppControlReceived, " + e.ReceivedAppControl.Operation);
-            DbgPort.D("ApplicationId = " + e.ReceivedAppControl.ApplicationId);
-            DbgPort.D("CallerApplicationId = " + e.ReceivedAppControl.CallerApplicationId);
-
             if (AppControlPort.AppAddedNotifyOperation.CompareTo(e.ReceivedAppControl.Operation) == 0)
             {
                 DbgPort.D("App Added Notification");
index 8b7cce59557267d5f5ce2834364e5a0795cf43ba..67c65aa7add1e93b62a5f17a15166313aada4d4b 100644 (file)
Binary files a/TVHome/TVHome.TizenTV/bin/Debug/TVHome.TizenTV.tpk and b/TVHome/TVHome.TizenTV/bin/Debug/TVHome.TizenTV.tpk differ
index 59102ce4e9d6affa72f628c9a379fd753ef1753b..a925b9b54973a6c64d6fd7293607f262821f6626 100755 (executable)
@@ -26,8 +26,17 @@ namespace TVHome
         public string arg;
     }
 
+    public enum TVHomeStatus
+    {
+        OnStart,
+        OnSleep,
+        OnResume,
+    }
+
     public class App : Application, IPlatformNotification
     {
+        public static readonly string AppStatus = "appstatus";
+
         private static EventHandler<TVHomeEventArgs> HomeKeyListener;
         private static EventHandler<TVHomeEventArgs> MenuKeyListener;
         private static EventHandler<TVHomeEventArgs> AppInstalledListener;
@@ -41,17 +50,17 @@ namespace TVHome
 
         protected override void OnStart()
         {
-
+            MessagingCenter.Send<App, TVHomeStatus>(this, "appstatus", TVHomeStatus.OnStart);
         }
 
         protected override void OnSleep()
         {
-
+            MessagingCenter.Send<App, TVHomeStatus>(this, "appstatus", TVHomeStatus.OnSleep);
         }
 
         protected override void OnResume()
         {
-
+            MessagingCenter.Send<App, TVHomeStatus>(this, "appstatus", TVHomeStatus.OnResume);
         }
 
         public static void SetHomeKeyListener(EventHandler<TVHomeEventArgs> listener)
index 31963b38164841537691c4fe059c9438d6b522ee..f3e6528d0fbb5739dd800ed7bb4bab6e8f369d1a 100644 (file)
@@ -9,6 +9,6 @@ namespace TVHome.ViewModels
     interface IHomeViewModel
     {
         void OnPropertyChanged(string name);
-        void ChangeCurrentStatus(HomeStatus newStatus);
+        void ChangeCurrentStatus(HomeStatus newStatus, bool isForceUpdate);
     }
 }
index 5221cdc2420855ab0eadf7c25a39e6ef55bb5903..e6a2cc16d629212094225ad3845b4207ff646019 100755 (executable)
  */
 
 using System;
-using System.Collections;
 using System.Collections.Generic;
 using System.ComponentModel;
-using System.Windows.Input;
-using System.Threading.Tasks;
 using System.Linq;
 using LibTVRefCommonPortable.DataModels;
 using LibTVRefCommonPortable.Utils;
@@ -64,25 +61,23 @@ namespace TVHome.ViewModels
 
         public MainPageViewModel()
         {
-            Init();
-            InitCommands();
+            // Init sequence
+            // MainPage ( MainPageViewModel -> MainPanel -> SubPanel )
             MakeMainMenuItems();
-            MakeRecentButtons();
+            InitStatus();
+            InitCommands();
+            SetDefaultAppList();
+            MakeSettingsButtons();
 
-            DebuggingUtils.Dbg("Reading Apps list");
-            TVHomeImpl.GetInstance.AppShortcutControllerInstance.GetDefaultShortcuts();
-            OnPropertyChanged("AppList");
             UpdateAppList(null, null);
 
-            //SettingsList = TVHomeImpl.GetInstance.AppShortcutControllerInstnace.ReadFromFile();
-            SettingsList = TVHomeImpl.GetInstance.SettingShortcutControllerInstance.GetList();
-            OnPropertyChanged("SettingsList");
-
             TVHomeImpl.GetInstance.AppShortcutControllerInstance.AddFileSystemChangedListener(UpdateAppList);
 
             App.SetAppPinnedNotificationListener((s, e) =>
             {
                 // TODO : Make this for Move a pinned app/Show pinned apps(scroll to last)
+                ChangeCurrentStatus(HomeStatus.SubPanelFocused);
+                ChangeSelectedPanelName(HomeMenuItem.Apps);
                 if (e.arg.Length > 0)
                 {
                     DebuggingUtils.Dbg("Move, AppID : " + e.arg);
@@ -92,12 +87,24 @@ namespace TVHome.ViewModels
                     DebuggingUtils.Dbg("Show, Pinned Apps");
                 }
             });
+
+            MessagingCenter.Subscribe<App, TVHomeStatus>(this, App.AppStatus, (sender, arg) =>
+            {
+                switch (arg)
+                {
+                    case TVHomeStatus.OnResume:
+                        MakeRecentButtons();
+                        break;
+                    case TVHomeStatus.OnSleep:
+                        ChangeCurrentStatus(HomeStatus.Default, true);
+                        break;
+                }
+            });
         }
 
-        private void Init()
+        private void InitStatus()
         {
-            CurrentStatus = HomeStatus.Default;
-            SelectedMenuName = HomeMenuItem.NotSelected;
+            ChangeCurrentStatus(HomeStatus.Default, true);
         }
 
         private void InitCommands()
@@ -137,7 +144,7 @@ namespace TVHome.ViewModels
             string[] AppUnselectIconPath = { "ic_tizen_home_menu_recent_unselect.png", "ic_tizen_home_menu_apps_unselect.png", "ic_tizen_home_menu_settings_unselect.png" };
 
             List<ShortcutInfo> TempList = new List<ShortcutInfo>();
-            for (int i = 0; i < 3; i++)
+            for (int i = 0; i < AppName.Length; i++)
             {
                 ShortcutInfo shortcutInfo = new HomeMenuAppShortcutInfo()
                 {
@@ -201,15 +208,27 @@ namespace TVHome.ViewModels
             OnPropertyChanged("MainList");
         }
 
+        private void SetDefaultAppList()
+        {
+            AppList = TVHomeImpl.GetInstance.AppShortcutControllerInstance.GetDefaultShortcuts();
+            OnPropertyChanged("AppList");
+        }
+
         private async void UpdateAppList(object sender, EventArgs e)
         {
             AppList = await TVHomeImpl.GetInstance.AppShortcutControllerInstance.GetPinnedAppsWithDefaultShortcuts();
             OnPropertyChanged("AppList");
         }
 
-        private async void MakeRecentButtons()
+        private void MakeSettingsButtons()
+        {
+            SettingsList = TVHomeImpl.GetInstance.SettingShortcutControllerInstance.GetList();
+            OnPropertyChanged("SettingsList");
+        }
+
+        private void MakeRecentButtons()
         {
-            RecentList = await TVHomeImpl.GetInstance.RecentShortcutControllerInstance.GetList();
+            RecentList = TVHomeImpl.GetInstance.RecentShortcutControllerInstance.GetList();
             if (RecentList.Count<ShortcutInfo>() > 0)
             {
                 IsShowNoRecentContents = false;
@@ -232,25 +251,43 @@ namespace TVHome.ViewModels
             }
         }
 
-        public void ChangeCurrentStatus(HomeStatus newStatus)
+        public void ChangeCurrentStatus(HomeStatus newStatus, bool isForceUpdate = false)
         {
-            if (CurrentStatus.CompareTo(newStatus) != 0)
+            if (isForceUpdate ||
+                CurrentStatus.CompareTo(newStatus) != 0)
             {
                 CurrentStatus = newStatus;
-                if (CurrentStatus.CompareTo(HomeStatus.MainPanelFocused) == 0)
+                if (CurrentStatus.CompareTo(HomeStatus.Default) == 0)
+                {
+                    foreach (HomeMenuAppShortcutInfo item in MainList)
+                    {
+                        if (item.CurrentStateDescription.Label.CompareTo("Apps") == 0)
+                        {
+                            DebuggingUtils.Dbg(item.CurrentStateDescription.Label + " To Focused");
+                            item.ChangeStatus("focused");
+                        }
+                        else
+                        {
+                            DebuggingUtils.Dbg(item.CurrentStateDescription.Label + " To Default");
+                            item.ChangeStatus("default");
+                        }
+                    }
+
+                    ChangeSelectedPanelName(HomeMenuItem.Apps, isForceUpdate);
+                }
+                else if (CurrentStatus.CompareTo(HomeStatus.MainPanelFocused) == 0)
                 {
                     HomeMenuItem index = HomeMenuItem.Recent;
                     foreach (HomeMenuAppShortcutInfo item in MainList)
                     {
-                        DebuggingUtils.Dbg(index.ToString());
                         if (index == SelectedMenuName)
                         {
-                            DebuggingUtils.Dbg("To Focused");
+                            DebuggingUtils.Dbg(index.ToString() + " To Focused");
                             item.ChangeStatus("focused");
                         }
                         else
                         {
-                            DebuggingUtils.Dbg("To Default");
+                            DebuggingUtils.Dbg(index.ToString() + " To Default");
                             item.ChangeStatus("default");
                         }
 
@@ -262,15 +299,14 @@ namespace TVHome.ViewModels
                     HomeMenuItem index = HomeMenuItem.Recent;
                     foreach (HomeMenuAppShortcutInfo item in MainList)
                     {
-                        DebuggingUtils.Dbg(index.ToString());
                         if (index == SelectedMenuName)
                         {
-                            DebuggingUtils.Dbg("To be selected");
+                            DebuggingUtils.Dbg(index.ToString() + " To be selected");
                             item.ChangeStatus("selected");
                         }
                         else
                         {
-                            DebuggingUtils.Dbg("To be unselect");
+                            DebuggingUtils.Dbg(index.ToString() + " To be unselect");
                             item.ChangeStatus("unselect");
                         }
 
@@ -282,23 +318,23 @@ namespace TVHome.ViewModels
             }
         }
 
-        public void ChangeSelectedPanelName(HomeMenuItem panelName)
+        public void ChangeSelectedPanelName(HomeMenuItem panelName, bool isForceUpdate = false)
         {
-            if (SelectedMenuName.CompareTo(panelName) != 0)
+            if (isForceUpdate ||
+                SelectedMenuName.CompareTo(panelName) != 0)
             {
                 SelectedMenuName = panelName;
                 HomeMenuItem index = HomeMenuItem.Recent;
                 foreach (HomeMenuAppShortcutInfo item in MainList)
                 {
-                    DebuggingUtils.Dbg(index.ToString());
                     if (index == panelName)
                     {
-                        DebuggingUtils.Dbg("To Focused");
+                        DebuggingUtils.Dbg(index.ToString() + " To Focused");
                         item.ChangeStatus("focused");
                     }
                     else
                     {
-                        DebuggingUtils.Dbg("To Default");
+                        DebuggingUtils.Dbg(index.ToString() + " To Default");
                         item.ChangeStatus("default");
                     }
 
index 4cba2b0d1d3eadbb1fe003080e794dde653127a0..fe668c9b5ed850581f3f1d3d30afd6dff7f666ee 100755 (executable)
@@ -5,7 +5,6 @@
              xmlns:Views="clr-namespace:TVHome.Views"
              xmlns:ViewModels="clr-namespace:TVHome.ViewModels"
              xmlns:Controls="clr-namespace:TVHome.Controls"
-             Appearing="OnAppearing"
              CurrentStatus="{Binding CurrentStatus}"
              SelectedMenuName="{Binding SelectedMenuName}">
     <ContentPage.BindingContext>
index a344fcfc5f12d3d2a3373ae4ae0f4ae496b132f1..8c8887ddf94663896b7cb90c86a586a8ba52f604 100755 (executable)
@@ -88,6 +88,11 @@ namespace TVHome.Views
             SubPanelDictionary.Add(HomeMenuItem.Recent, RecentSubPanel);
             SubPanelDictionary.Add(HomeMenuItem.Apps, AppsSubPanel);
             SubPanelDictionary.Add(HomeMenuItem.Settings, SettingsSubPanel);
+
+            RecentSubPanel.HidePanel();
+            AppsSubPanel.ShowPanel();
+            SettingsSubPanel.HidePanel();
+
             PropertyChanged += MainPage_PropertyChanged;
 
             App.SetHomeKeyListener((e, arg) =>
@@ -112,11 +117,18 @@ namespace TVHome.Views
             {
                 //UnpinAppShortcutInfo(appId);
             });
+
+            MessagingCenter.Subscribe<App, TVHomeStatus>(this, App.AppStatus, (sender, arg) =>
+            {
+                if (arg == TVHomeStatus.OnSleep)
+                {
+                    PageMainPanel.InitialFocusing();
+                }
+            });
         }
 
         private void MainPage_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
         {
-            DebuggingUtils.Dbg(e.PropertyName);
             if (e.PropertyName.CompareTo("CurrentStatus") == 0)
             {
                 SetCurrentStatus(CurrentStatus);
@@ -143,28 +155,19 @@ namespace TVHome.Views
 
         private void SelectMenu(HomeMenuItem panelName)
         {
-            if (panelName == HomeMenuItem.NotSelected)
+            foreach (var panelItem in SubPanelDictionary)
             {
-                return;
+                panelItem.Value.HidePanel();
             }
 
-            IEnumerable<Panel> panels = from pair in SubPanelDictionary
-                                        where pair.Key != panelName
-                                        select pair.Value;
-
-            foreach (Panel panel in panels)
+            if (panelName == HomeMenuItem.NotSelected)
             {
-                panel.HidePanel();
+                return;
             }
 
             SubPanelDictionary[panelName].ShowPanel();
         }
 
-        private void OnAppearing(object sender, EventArgs e)
-        {
-            PageMainPanel.InitialFocusing();
-        }
-
         private void UnpinAppShortcutInfo(string appId)
         {
             RemovePinnedApp(appId);
index a11e9e0d0ce0f9c6f4c7ae6f1c97831c72fb32c8..d60d64b8fd0add6d164f842420cfde357e0ea299 100755 (executable)
@@ -41,7 +41,7 @@
             RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=BackgroundBox ,Property=Width, Factor=0.28858}"
             Text="No Content to display"
             HorizontalTextAlignment="Center"
-            FontSize="56"
+            FontSize="40"
             TextColor="White" />
     </RelativeLayout>
   </RelativeLayout>