From: Geunsun, Lee Date: Thu, 16 Mar 2017 08:28:57 +0000 (+0900) Subject: Implement Apps Option menu behavior X-Git-Tag: submit/tizen/20170808.015446~191 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4dc625b92f293ac444f32d3002b0a03d38e7f379;p=profile%2Ftv%2Fapps%2Fdotnet%2Fhome.git Implement Apps Option menu behavior Change-Id: I3ac6b529d81655c76d3e5d79828b8d480cbe8fb4 --- diff --git a/LibTVRefCommonPortable/DataModels/AppShortcutInfo.cs b/LibTVRefCommonPortable/DataModels/AppShortcutInfo.cs index e6f24ee..7248692 100644 --- a/LibTVRefCommonPortable/DataModels/AppShortcutInfo.cs +++ b/LibTVRefCommonPortable/DataModels/AppShortcutInfo.cs @@ -34,6 +34,15 @@ namespace LibTVRefCommonPortable.DataModels [XmlIgnore] public bool IsRemovable { get; set; } + [XmlIgnore] + public bool IsVisible { get; set; } = true; + + [XmlIgnore] + public bool IsDim { get; set; } + + [XmlIgnore] + public bool IsShowOptions { get; set; } + [XmlIgnore] public DateTime Installed { get; set; } @@ -56,5 +65,29 @@ namespace LibTVRefCommonPortable.DataModels IsPinned = value; OnPropertyChanged("IsPinned"); } + + public void SetVisible(bool value) + { + IsVisible = value; + OnPropertyChanged("IsVisible"); + } + + public void SetDim(bool value) + { + IsDim = value; + OnPropertyChanged("IsDim"); + } + + public void ShowOptions() + { + IsShowOptions = true; + OnPropertyChanged("IsShowOptions"); + } + + public void HideOptions() + { + IsShowOptions = false; + OnPropertyChanged("IsShowOptions"); + } } } diff --git a/TVApps/TVApps/Controls/AppItemCell.xaml b/TVApps/TVApps/Controls/AppItemCell.xaml index 4e7f764..b2b1036 100755 --- a/TVApps/TVApps/Controls/AppItemCell.xaml +++ b/TVApps/TVApps/Controls/AppItemCell.xaml @@ -3,33 +3,34 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="TVApps.Controls.AppItemCell"> + RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.8245}"> @@ -63,6 +64,15 @@ Grid.Column="3" Opacity="0" /> + + + +