Answered by:
Animations in WPF

Question
-
Hi,
Can anybody provide me some tutorials for Animations in WPF? As i am new to WPF, I am finding it difficult to understand how to animate objects/controls in wpf.
I would be happy with a simple example.
Thanks in advance.
Wednesday, February 22, 2012 10:42 AM
Answers
-
http://windowsclient.net/learn/videos_wpf.aspx
including... http://windowsclient.net/learn/video.aspx?v=280279 - How Do I: Animate an Effect in WPF?
and... http://windowsclient.net/learn/video.aspx?v=24743 - How Do I: Use PointAnimation to Animate a Path in WPF
Plus a whole host here : http://www.google.co.uk/#sclient=psy-ab&hl=en&source=hp&q=youtube%20wpf%20animation&pbx=1&oq=&aq=&aqi=&aql=&gs_sm=&gs_upl=&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=252a8ccab5621b39&biw=1464&bih=585&pf=p&pdl=500
Videos are a far easier way to learn.
Not forgetting of course the starting page for all WPF animation reading : http://msdn.microsoft.com/en-us/library/ms752312.aspx
<BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetName="MyRectangle" Storyboard.TargetProperty="Opacity" From="1.0" To="0.0" Duration="0:0:5" AutoReverse="True" RepeatBehavior="Forever" /> </Storyboard> </BeginStoryboard>
Regards,
Pete
#PEJL
- Edited by Pete LakerMVP Wednesday, February 22, 2012 11:30 AM
- Proposed as answer by Horizon_Net Wednesday, February 22, 2012 7:30 PM
- Marked as answer by Sheldon _Xiao Tuesday, February 28, 2012 4:51 AM
Wednesday, February 22, 2012 11:28 AM -
Hi M in Trouble,
there are many sample could help you start WPF, and Animation samples are included:
http://archive.msdn.microsoft.com/wpfsamples/
Best regards,
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked as answer by Sheldon _Xiao Tuesday, February 28, 2012 4:51 AM
Thursday, February 23, 2012 3:12 AM
All replies
-
http://windowsclient.net/learn/videos_wpf.aspx
including... http://windowsclient.net/learn/video.aspx?v=280279 - How Do I: Animate an Effect in WPF?
and... http://windowsclient.net/learn/video.aspx?v=24743 - How Do I: Use PointAnimation to Animate a Path in WPF
Plus a whole host here : http://www.google.co.uk/#sclient=psy-ab&hl=en&source=hp&q=youtube%20wpf%20animation&pbx=1&oq=&aq=&aqi=&aql=&gs_sm=&gs_upl=&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=252a8ccab5621b39&biw=1464&bih=585&pf=p&pdl=500
Videos are a far easier way to learn.
Not forgetting of course the starting page for all WPF animation reading : http://msdn.microsoft.com/en-us/library/ms752312.aspx
<BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetName="MyRectangle" Storyboard.TargetProperty="Opacity" From="1.0" To="0.0" Duration="0:0:5" AutoReverse="True" RepeatBehavior="Forever" /> </Storyboard> </BeginStoryboard>
Regards,
Pete
#PEJL
- Edited by Pete LakerMVP Wednesday, February 22, 2012 11:30 AM
- Proposed as answer by Horizon_Net Wednesday, February 22, 2012 7:30 PM
- Marked as answer by Sheldon _Xiao Tuesday, February 28, 2012 4:51 AM
Wednesday, February 22, 2012 11:28 AM -
Thank you. I will look into that :)Wednesday, February 22, 2012 12:19 PM
-
DoubleAnimation Slider2 = new DoubleAnimation(1, .2, new Duration(TimeSpan.FromSeconds(1)));
Storyboard.SetTargetName(Slider2, "winAlbumDetails"); Storyboard.SetTargetProperty(Slider2, new PropertyPath(Canvas.OpacityProperty)); myStoryboard.Children.Add(Slider2);
C# code for Animation..
Mark as Answer or Vote as Helpful if you like it.
Regards,
Anand
- Proposed as answer by Anand Austin Wednesday, February 22, 2012 2:08 PM
- Unproposed as answer by Anand Austin Wednesday, February 22, 2012 2:08 PM
Wednesday, February 22, 2012 12:38 PM -
Hi M in Trouble,
there are many sample could help you start WPF, and Animation samples are included:
http://archive.msdn.microsoft.com/wpfsamples/
Best regards,
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked as answer by Sheldon _Xiao Tuesday, February 28, 2012 4:51 AM
Thursday, February 23, 2012 3:12 AM -
Thank you.Thursday, February 23, 2012 4:34 AM