New animation effect for focused main panel button
authorKyuho Jo <kyuho.jo@samsung.com>
Thu, 2 Mar 2017 11:24:52 +0000 (20:24 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:44 +0000 (18:34 +0900)
Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
Change-Id: Id8e4195255735605933ed1dcf95bd75331991058

TVHome/TVHome/Controls/MainPanelButton.xaml
TVHome/TVHome/Controls/MainPanelButton.xaml.cs

index 2436c85..b5a8c28 100755 (executable)
@@ -15,7 +15,8 @@
               RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0}"
               RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=-0.343}"
               Source="img_tizen_home_menu_focused_bg.png"
-              Opacity="0"/>
+              Opacity="0"
+              Scale="0"/>
         <Image x:Name="ButtonImage"
               RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.218}"
               RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
index 657f71a..35ddaae 100755 (executable)
@@ -69,6 +69,7 @@ namespace TVHome.Controls
 
             ButtonTitle.FadeTo(0.8, 300);
             ButtonBgImage.FadeTo(0.99, 300);
+            ButtonBgImage.ScaleTo(1.0, 300);
             await View.FadeTo(0.6, 300);
         }
 
@@ -89,6 +90,7 @@ namespace TVHome.Controls
 
             ButtonTitle.FadeTo(0, 300);
             ButtonBgImage.FadeTo(0, 300);
+            ButtonBgImage.ScaleTo(0.01, 300);
             await View.FadeTo(0.3, 300);
         }