From a0ca70cd10bbb1bf91ff2d1b7d87a5748d8b9044 Mon Sep 17 00:00:00 2001 From: Hyerim Kim Date: Tue, 18 Apr 2017 20:38:21 +0900 Subject: [PATCH] Implement Focus chaining for Apps Change-Id: Iee83059dddde0f9adb612cba64ca6e338cd987ca Signed-off-by: Hyerim Kim --- TVApps/TVApps/Controls/AppItemCell.xaml | 2 + TVApps/TVApps/Controls/AppItemCell.xaml.cs | 2 + TVApps/TVApps/Controls/AppListView.xaml.cs | 10 ++ TVApps/TVApps/TVApps.csproj | 0 .../TVApps/Views/FooterDeleteStatus.xaml.cs | 5 + .../TVApps/Views/FooterNormalStatus.xaml.cs | 5 + TVApps/TVApps/Views/FooterPinStatus.xaml.cs | 5 + TVApps/TVApps/Views/MainPage.xaml.cs | 127 ++++++++++++++++++ TVApps/TVApps/packages.config | 0 9 files changed, 156 insertions(+) mode change 100644 => 100755 TVApps/TVApps/Controls/AppListView.xaml.cs mode change 100644 => 100755 TVApps/TVApps/TVApps.csproj mode change 100644 => 100755 TVApps/TVApps/Views/FooterDeleteStatus.xaml.cs mode change 100644 => 100755 TVApps/TVApps/Views/FooterNormalStatus.xaml.cs mode change 100644 => 100755 TVApps/TVApps/Views/FooterPinStatus.xaml.cs mode change 100644 => 100755 TVApps/TVApps/Views/MainPage.xaml.cs mode change 100644 => 100755 TVApps/TVApps/packages.config diff --git a/TVApps/TVApps/Controls/AppItemCell.xaml b/TVApps/TVApps/Controls/AppItemCell.xaml index c000848..79a3e46 100755 --- a/TVApps/TVApps/Controls/AppItemCell.xaml +++ b/TVApps/TVApps/Controls/AppItemCell.xaml @@ -93,10 +93,12 @@ diff --git a/TVApps/TVApps/Controls/AppItemCell.xaml.cs b/TVApps/TVApps/Controls/AppItemCell.xaml.cs index c007185..dfa5516 100755 --- a/TVApps/TVApps/Controls/AppItemCell.xaml.cs +++ b/TVApps/TVApps/Controls/AppItemCell.xaml.cs @@ -236,6 +236,8 @@ namespace TVApps.Controls TextArea.TranslateTo(0, (isShow) ? -height90 : 0, 100); TextArea.FadeTo((isShow) ? 0.0 : 0.99, 100); OptionMenuArea.TranslateTo(0, (isShow) ? -height144 : 0, 100); + OptionMenuPinToggleButton.IsEnabled = (isShow) ? true : false; + OptionMenuDeleteButton.IsEnabled = (isShow) ? true : false; } /// diff --git a/TVApps/TVApps/Controls/AppListView.xaml.cs b/TVApps/TVApps/Controls/AppListView.xaml.cs old mode 100644 new mode 100755 index b7763d0..79c9b3f --- a/TVApps/TVApps/Controls/AppListView.xaml.cs +++ b/TVApps/TVApps/Controls/AppListView.xaml.cs @@ -136,6 +136,16 @@ namespace TVApps.Controls } } + public IList GetAppsUpperList() + { + return AppUpperList.Children; + } + + public IList GetAppsLowerList() + { + return AppLowerList.Children; + } + /// /// A method creates and adds AppItemCells binded with ItemsSource /// diff --git a/TVApps/TVApps/TVApps.csproj b/TVApps/TVApps/TVApps.csproj old mode 100644 new mode 100755 diff --git a/TVApps/TVApps/Views/FooterDeleteStatus.xaml.cs b/TVApps/TVApps/Views/FooterDeleteStatus.xaml.cs old mode 100644 new mode 100755 index 0c6926f..8b20858 --- a/TVApps/TVApps/Views/FooterDeleteStatus.xaml.cs +++ b/TVApps/TVApps/Views/FooterDeleteStatus.xaml.cs @@ -46,5 +46,10 @@ namespace TVApps.Views yConstraint: Constraint.Constant(SizeUtils.GetHeightSize(762)), xConstraint: Constraint.Constant(SizeUtils.GetWidthSize(96 + 1130 + 300 + 2))); } + + public Button GetCancelButton() + { + return CancelButton.FindByName