Click here to Skip to main content
15,899,937 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I have two pages in wpf. if i click first page then the page should come with fade effect. please guide me step by step process.
Posted
Comments
Thanks7872 17-Jul-13 2:01am    
What have you tried? No one would like to guide you step by step. If you want that,use google. This forum is meant to solve problems,not to do coding for you.

Im giving just a try here



DoubleAnimation fade = new DoubleAnimation(0.0, 1.0, new Duration(new TimeSpan(0, 0, 0, 0, 1000)));
Storyboard.SetTargetProperty(fade, new PropertyPath(Border.OpacityProperty));
Storyboard myStoryBoard = new Storyboard();
myStoryBoard.Children.Add(fade);
myStoryBoard.Begin(InsertYourContentObjectHere eg.Grid);
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900