Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Fade In Fade Out Animation In Blend
WhatsApp
Aman Kumar
9y
12.1k
0
0
100
Article
CsharpFadeInFadeOut.zip
Here are the steps:
Create a blank app in visual studio and create a grid either using toolbox or by coding in xaml.
<Grid Background=
"{ThemeResource ApplicationPageBackgroundThemeBrush}"
>
<Grid Height=
"500"
Width=
"500"
Background=
"Gray"
/>
</Grid>
Save your file and see on xaml page from solution explorer and select
'Open in Blend'
.
Create new story board.
Select time key frame on for storyboard. For example, a: 1 (fade out and fade in appears in 1 sec.).
Change opacity of gray grid to 0%.
To run it forever and in auto reverse mode select story board and change the repeat behavior.
Story board can begin by any event trigger using Storyboard.Begin().
Example:
Button to begin storyboard animation using event trigger and adding actions on click event of button only through xaml.
blend
Expression Studio
FadeIn Fadeout animation
Up Next
Ebook Download
View all
Printing in C# Made Easy
Read by 22.3k people
Download Now!
Learn
View all
Membership not found