From: JH Choi Date: Mon, 4 Sep 2017 10:16:02 +0000 (+0900) Subject: Remove SelectedMenuName property. It's unnecessary bindable property and it X-Git-Tag: submit/tizen_4.0/20170911.075016~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=775cd95a45c5ec0e3dacf94ceaeaacaae1bfe4fa;p=profile%2Ftv%2Fapps%2Fdotnet%2Fhome.git Remove SelectedMenuName property. It's unnecessary bindable property and it makes an error. Change-Id: I45001eaed617a70c740de49b86e8d1d5f5e6aaf2 Signed-off-by: JH Choi --- 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