Removes Xamarin Warnings 70/151170/3
authorHeonjae.Jang <Heonjae.Jang@samsung.com>
Wed, 20 Sep 2017 06:06:43 +0000 (15:06 +0900)
committerHeonjae Jang <heonjae.jang@samsung.com>
Wed, 20 Sep 2017 06:46:41 +0000 (06:46 +0000)
Change-Id: Ic526a541c669a77b2da29fa1dc59a4587818fb78

TVHome/TVHome/Views/MainPage.xaml.cs

index 9ce8b47..9fbcfe6 100755 (executable)
@@ -103,6 +103,8 @@ namespace TVHome.Views
         {
             InitializeComponent();
 
+            AppsSubPanel.BindingContext = AppListViewModel.Instance;
+            SettingsSubPanel.BindingContext = SettingsViewModel.Instance;
             BindingContext = MainPageViewModel.Instance;
 
             SubPanelDictionary = new Dictionary<HomeMenuItem, Panel>();
@@ -110,10 +112,7 @@ namespace TVHome.Views
             SubPanelDictionary.Add(HomeMenuItem.Settings, SettingsSubPanel);
 
             AppsSubPanel.OnPanelShowing();
-            AppsSubPanel.BindingContext = AppListViewModel.Instance;
-
             SettingsSubPanel.OnPanelHiding();
-            SettingsSubPanel.BindingContext = SettingsViewModel.Instance;
 
             PropertyChanged += MainPage_PropertyChanged;
 
@@ -288,4 +287,4 @@ namespace TVHome.Views
             return true;
         }
     }
-}
\ No newline at end of file
+}