■ ScaleAnimation 엘리먼트를 사용해 스케일 애니메이션을 만드는 방법을 보여준다.
▶ 예제 코드 (XAML)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
xmlns:animation="using:CommunityToolkit.WinUI.animation" <Button Name="startButton" HorizontalAlignment="Center" Padding="10" Content="Start"> <animation:Explicit.animation> <animation:animationet x:Name="sequentialAnimation" IsSequential="True"> <animation:animationcope> <animation:ScaleAnimation From="1" To="1.2" /> <animation:TranslationAnimation From="-20,0,0" To="0" /> <animation:OpacityAnimation From="0" To="1 "/> </animation:animationcope> <animation:ScaleAnimation To="1" /> </animation:animationet> </animation:Explicit.animation> </Button> |