Changed to disable footer menu when there are no items 12/151212/3
authorJH Choi <jjie.choi@samsung.com>
Wed, 20 Sep 2017 07:33:27 +0000 (16:33 +0900)
committerHeonjae Jang <heonjae.jang@samsung.com>
Thu, 21 Sep 2017 07:53:34 +0000 (07:53 +0000)
Change-Id: I057479a8664a537f8a2a56bebd1f6a9e8ee10df4
Signed-off-by: JH Choi <jjie.choi@samsung.com>
TVMediaHub/TVMediaHub.Tizen/Views/FooterNormalStatus.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/ImageTab.xaml
TVMediaHub/TVMediaHub.Tizen/Views/ImageTab.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml
TVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/VideoTab.xaml
TVMediaHub/TVMediaHub.Tizen/Views/VideoTab.xaml.cs

index ec93810..a3f580e 100755 (executable)
@@ -143,17 +143,8 @@ namespace TVMediaHub.Tizen.Views
             }
             else if (e.PropertyName.Equals("IsFooterEnabled"))
             {
-                DropdownSource.IsEnabled = IsFooterEnabled;
                 DropdownSort.IsEnabled = IsFooterEnabled;
                 ButtonOption.IsEnabled = IsFooterEnabled;
-                if (!IsFooterEnabled)
-                {
-                    ButtonOption.Text = "";
-                }
-                else
-                {
-                    ButtonOption.Text = "OPTION";
-                }
             }
         }
 
index 26fd5d6..0e18689 100755 (executable)
@@ -28,7 +28,7 @@
                                       SelectedCount="{Binding SelectedCount}"
                                       ContentType="Photo"/>
             <Views:FooterNormalStatus x:Name="FooterNormal"  IsVisible="True"
-                                      IsFooterEnabled="True"
+                                      IsFooterEnabled="False"
                                       RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
                                       RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
                                       SourceList="{Binding SourceList}"
index e17e7d0..29753d1 100755 (executable)
@@ -343,6 +343,7 @@ namespace TVMediaHub.Tizen.Views
                 {
                     GalleryNoContents.IsVisible = false;
                     ImageTabScrollView.IsVisible = true;
+                    FooterNormal.IsFooterEnabled = true;
                 }
 
                 var group = e.NewItems[0] as GroupItem;
@@ -428,6 +429,7 @@ namespace TVMediaHub.Tizen.Views
                 {
                     ImageTabScrollView.IsVisible = false;
                     GalleryNoContents.IsVisible = true;
+                    FooterNormal.IsFooterEnabled = false;
                 }
             }
         }
index 46c8aba..5988045 100755 (executable)
@@ -29,7 +29,7 @@
                                       ContentType="Music"/>
             <Views:FooterNormalStatus x:Name="FooterNormal"
                                       IsVisible="True"
-                                      IsFooterEnabled="True"
+                                      IsFooterEnabled="False"
                                       RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
                                       RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
                                       SourceList="{Binding SourceList}"
index d76667a..6136520 100755 (executable)
@@ -293,6 +293,7 @@ namespace TVMediaHub.Tizen.Views
                 {
                     MusicNoContents.IsVisible = false;
                     MusicTabScrollView.IsVisible = true;
+                    FooterNormal.IsFooterEnabled = true;
                 }
 
                 MusicGroup groupView = new MusicGroup();
@@ -366,6 +367,7 @@ namespace TVMediaHub.Tizen.Views
                 {
                     MusicTabScrollView.IsVisible = false;
                     MusicNoContents.IsVisible = true;
+                    FooterNormal.IsFooterEnabled = false;
                 }
             }
 
index b9554a0..f390e88 100755 (executable)
@@ -30,7 +30,7 @@
                                       RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
                                       SelectedCount="{Binding SelectedCount}"/>
             <Views:FooterNormalStatus x:Name="FooterNormal"  IsVisible="True"
-                                      IsFooterEnabled="True"
+                                      IsFooterEnabled="False"
                                       RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
                                       RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
                                       SourceList="{Binding SourceList}"
index 57acd3b..b135fef 100755 (executable)
@@ -333,6 +333,7 @@ namespace TVMediaHub.Tizen.Views
                 {
                     VideoNoContents.IsVisible = false;
                     VideoTabScrollView.IsVisible = true;
+                    FooterNormal.IsFooterEnabled = true;
                 }
 
                 VideoGroup groupView = new VideoGroup();
@@ -420,6 +421,7 @@ namespace TVMediaHub.Tizen.Views
                 {
                     VideoTabScrollView.IsVisible = false;
                     VideoNoContents.IsVisible = true;
+                    FooterNormal.IsFooterEnabled = false;
                 }
             }
         }