From: Heonjae Jang Date: Tue, 28 Mar 2017 09:46:17 +0000 (+0900) Subject: TV Apps - Change Animation(Add Pin Contents Item : Selected) X-Git-Tag: submit/tizen/20170808.015446~150 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c68d267d716ddb2d96a78511130bb79e5f4a52c;p=profile%2Ftv%2Fapps%2Fdotnet%2Fhome.git TV Apps - Change Animation(Add Pin Contents Item : Selected) Change-Id: If331d0f41f2a1289bf04a337d6b39c5c4a77dd21 --- diff --git a/TVApps/TVApps/Controls/AppItemCell.xaml b/TVApps/TVApps/Controls/AppItemCell.xaml index f5fd525..4b76d82 100755 --- a/TVApps/TVApps/Controls/AppItemCell.xaml +++ b/TVApps/TVApps/Controls/AppItemCell.xaml @@ -3,9 +3,8 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="TVApps.Controls.AppItemCell"> - + + { + var scale = 1.32 - (0.22) * v; + var translationY = 64.93 - (25.51) * v; + ButtonImage.Scale = scale; + TextArea.TranslationY = translationY; + }, + length: 150, + finished: (a, b) => + { + ButtonImage.ScaleTo(1.32, 150); + TextArea.TranslateTo(0.0, 64.93, 150); + CheckImage.FadeTo((IsChecked) ? 0.99 : 0.0, 150); + DimImage.FadeTo((IsChecked) ? 0.99 : 0.0, 150); + DimImage.TranslateTo(0.0, (IsChecked) ? 4.64 : 0.0, 150); + DimImage.ScaleTo((IsChecked) ? 1.32 : 0.0, 300); + }); + } + else + { + CheckImage.FadeTo((IsChecked) ? 0.99 : 0.0, 300); + DimImage.FadeTo((IsChecked) ? 0.99 : 0.0, 300); + DimImage.TranslateTo(0.0, (IsChecked) ? 4.64 : 0.0, 300); + DimImage.ScaleTo((IsChecked) ? 1.32 : 0.0, 300); + } return; }