Animating with storyboards
You can make your application feel more natural and organic (and fun) using storyboard animations.
Add a new Blank App (Universal Windows) project named Ch13_BouncingBall
.
Open the MainPage.xaml
file, change Grid
into Canvas
, and add an ellipse to make a red ball. Save your changes:
<Canvas Background= "{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Ellipse Fill="Red" Height="100" Width="100"/> </Canvas>
In the Solution Explorer window, right-click on the Ch13_BouncingBall
project and choose Design in Blend...
Note
Be patient. The first time you start Blend, it can take a few minutes.
The project will open in the Microsoft Blend for Visual Studio tool, which is used by designers because it has better support for ...
Get C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.