From 775cd95a45c5ec0e3dacf94ceaeaacaae1bfe4fa Mon Sep 17 00:00:00 2001 From: JH Choi Date: Mon, 4 Sep 2017 19:16:02 +0900 Subject: [PATCH] Remove SelectedMenuName property. It's unnecessary bindable property and it makes an error. Change-Id: I45001eaed617a70c740de49b86e8d1d5f5e6aaf2 Signed-off-by: JH Choi --- TVHome/TVHome/Views/MainPage.xaml | 3 +-- TVHome/TVHome/Views/MainPage.xaml.cs | 19 ------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/TVHome/TVHome/Views/MainPage.xaml b/TVHome/TVHome/Views/MainPage.xaml index cd3d409..7b6617a 100755 --- a/TVHome/TVHome/Views/MainPage.xaml +++ b/TVHome/TVHome/Views/MainPage.xaml @@ -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}"> - /// Identifies the SelectedMenuName bindable property - /// - public static readonly BindableProperty SelectedMenuNameProperty = BindableProperty.Create("SelectedMenuName", typeof(HomeMenuItem), typeof(MainPage), default(HomeMenuItem), defaultBindingMode: BindingMode.TwoWay); - - /// - /// Gets or sets selected HomeMenuItem - /// - public HomeMenuItem SelectedMenuName - { - get { return (HomeMenuItem)GetValue(SelectedMenuNameProperty); } - set { SetValue(SelectedMenuNameProperty, value); } - } - /// /// A list of SubPanels /// @@ -66,10 +52,7 @@ namespace TVHome.Views /// 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 -- 2.34.1