Remove SelectedMenuName property. It's unnecessary bindable property and it 53/147453/1
authorJH Choi <jjie.choi@samsung.com>
Mon, 4 Sep 2017 10:16:02 +0000 (19:16 +0900)
committerJH Choi <jjie.choi@samsung.com>
Mon, 4 Sep 2017 10:16:02 +0000 (19:16 +0900)
makes an error.

Change-Id: I45001eaed617a70c740de49b86e8d1d5f5e6aaf2
Signed-off-by: JH Choi <jjie.choi@samsung.com>
TVHome/TVHome/Views/MainPage.xaml
TVHome/TVHome/Views/MainPage.xaml.cs

index cd3d409..7b6617a 100755 (executable)
@@ -5,8 +5,7 @@
              xmlns:Views="clr-namespace:TVHome.Views"
              xmlns:ViewModels="clr-namespace:TVHome.ViewModels"
              xmlns:Controls="clr-namespace:TVHome.Controls"
-             CurrentState="{Binding CurrentState}"
-             SelectedMenuName="{Binding SelectedMenuName}">
+             CurrentState="{Binding CurrentState}">
   <ContentPage.Content>
     <RelativeLayout>
       <Controls:NinePatchImage x:Name="DimmedBgImage"
index 06683f1..d015a70 100755 (executable)
@@ -43,20 +43,6 @@ namespace TVHome.Views
         }
 
         /// <summary>
-        /// Identifies the SelectedMenuName bindable property
-        /// </summary>
-        public static readonly BindableProperty SelectedMenuNameProperty = BindableProperty.Create("SelectedMenuName", typeof(HomeMenuItem), typeof(MainPage), default(HomeMenuItem), defaultBindingMode: BindingMode.TwoWay);
-
-        /// <summary>
-        /// Gets or sets selected HomeMenuItem
-        /// </summary>
-        public HomeMenuItem SelectedMenuName
-        {
-            get { return (HomeMenuItem)GetValue(SelectedMenuNameProperty); }
-            set { SetValue(SelectedMenuNameProperty, value); }
-        }
-
-        /// <summary>
         /// A list of SubPanels
         /// </summary>
         private Dictionary<HomeMenuItem, Panel> SubPanelDictionary;
@@ -66,10 +52,7 @@ namespace TVHome.Views
         /// </summary>
         private async void Iconified()
         {
-            //SubPanelDictionary[SelectedMenuName]?.ForceHidePanel();
 #pragma warning disable CS4014
-            SubPanelDictionary[SelectedMenuName]?.TranslateTo(0.0, SizeUtils.GetHeightSize(100), 150);
-            SubPanelDictionary[SelectedMenuName]?.FadeTo(0, 150);
             DimmedBgImage.FadeTo(0.0, 150);
             PageMainPanel.TranslateTo(0.0, 0.0, 150);
 #pragma warning restore CS4014
@@ -83,8 +66,6 @@ namespace TVHome.Views
         private async void Uniconified()
         {
 #pragma warning disable CS4014
-            SubPanelDictionary[SelectedMenuName]?.TranslateTo(0.0, 0.0, 150);
-            SubPanelDictionary[SelectedMenuName]?.FadeTo(1.0, 150);
             DimmedBgImage.FadeTo(1, 150);
             PageMainPanel.TranslateTo(0.0, 0.0, 150);
 #pragma warning restore CS4014