summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJH Choi <jjie.choi@samsung.com>2017-09-06 15:29:23 +0900
committerJH Choi <jjie.choi@samsung.com>2017-09-06 15:29:23 +0900
commit76a9d079d0ce6b928a9e67b996208fa871785299 (patch)
tree2f8de657af4f398b6385d4961d7e5966ccf2ba0a
parentfb31339992f925a27af05edebfb63f6a3b206b69 (diff)
downloadmediahub-76a9d079d0ce6b928a9e67b996208fa871785299.tar.gz
mediahub-76a9d079d0ce6b928a9e67b996208fa871785299.tar.bz2
mediahub-76a9d079d0ce6b928a9e67b996208fa871785299.zip
Changed to If no item selected, OK button disabled.
Change-Id: I1a2b1508e1fdb71d071cb3204c2f45d383636188 Signed-off-by: JH Choi <jjie.choi@samsung.com>
-rw-r--r--TVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml3
-rwxr-xr-xTVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml.cs8
2 files changed, 10 insertions, 1 deletions
diff --git a/TVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml b/TVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml
index f240abb..ec7c727 100644
--- a/TVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml
+++ b/TVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml
@@ -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}"
diff --git a/TVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml.cs b/TVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml.cs
index 65b586d..509528c 100755
--- a/TVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml.cs
+++ b/TVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml.cs
@@ -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";