diff options
author | JH Choi <jjie.choi@samsung.com> | 2017-09-04 19:16:02 +0900 |
---|---|---|
committer | JH Choi <jjie.choi@samsung.com> | 2017-09-04 19:16:02 +0900 |
commit | 775cd95a45c5ec0e3dacf94ceaeaacaae1bfe4fa (patch) | |
tree | 4a24d4eef1fb3939f3659990836762e0251a75c1 /TVHome | |
parent | 5bc9f22ddfafefb021b300afd653279682bbde3a (diff) | |
download | home-775cd95a45c5ec0e3dacf94ceaeaacaae1bfe4fa.tar.gz home-775cd95a45c5ec0e3dacf94ceaeaacaae1bfe4fa.tar.bz2 home-775cd95a45c5ec0e3dacf94ceaeaacaae1bfe4fa.zip |
Remove SelectedMenuName property. It's unnecessary bindable property and it
makes an error.
Change-Id: I45001eaed617a70c740de49b86e8d1d5f5e6aaf2
Signed-off-by: JH Choi <jjie.choi@samsung.com>
Diffstat (limited to 'TVHome')
-rwxr-xr-x | TVHome/TVHome/Views/MainPage.xaml | 3 | ||||
-rwxr-xr-x | TVHome/TVHome/Views/MainPage.xaml.cs | 19 |
2 files changed, 1 insertions, 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}"> <ContentPage.Content> <RelativeLayout> <Controls:NinePatchImage x:Name="DimmedBgImage" diff --git a/TVHome/TVHome/Views/MainPage.xaml.cs b/TVHome/TVHome/Views/MainPage.xaml.cs index 06683f1..d015a70 100755 --- a/TVHome/TVHome/Views/MainPage.xaml.cs +++ b/TVHome/TVHome/Views/MainPage.xaml.cs @@ -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 |