Changed to If no item selected, OK button disabled. 63/147963/1
authorJH Choi <jjie.choi@samsung.com>
Wed, 6 Sep 2017 06:29:23 +0000 (15:29 +0900)
committerJH Choi <jjie.choi@samsung.com>
Wed, 6 Sep 2017 06:29:23 +0000 (15:29 +0900)
Change-Id: I1a2b1508e1fdb71d071cb3204c2f45d383636188
Signed-off-by: JH Choi <jjie.choi@samsung.com>
TVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml
TVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml.cs

index f240abb..ec7c727 100644 (file)
@@ -30,7 +30,8 @@
             RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.091}"
             RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1563}"
             RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.854}"
-            RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.6354}"/>
+            RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.6354}"
+            IsEnabled="False"/>
     <Button x:Name="CancelButton" Text="CANCEL"
             RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.091}"
             RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1563}"
index 65b586d..509528c 100755 (executable)
@@ -137,6 +137,14 @@ namespace TVMediaHub.Tizen.Views
         {
             if (e.PropertyName.Equals("ContentType") || e.PropertyName.Equals("SelectedCount"))
             {
+                if (SelectedCount > 0)
+                {
+                    OkButton.IsEnabled = true;
+                }
+                else
+                {
+                    OkButton.IsEnabled = false;
+                }
                 if (SelectedCount > 1)
                 {
                     LabelCount.Text = SelectedCount + " " + ContentType + "s";