.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sharon Maxwell
Post New Web Links

Mix'n'Match Animations

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :WPF
 
Hi, I have a storyboard written in C# (not XAML) which I use to manipulate some WPF controls - this works fine. But, I wish to manipulate objects in a ViewPort3D using the same storyboard just so all my transitions are contained in a single object. Unfortunately, I have not been able to pull this one off and rather than adding the animation to the storyboard, I have to call BeginAnimation() on the 3D component I want to animate seperately since it doesn't animate when I keep the animations together... not ideal . Is there any reason why I can't do this - storyboards written in XAML seem to pull this one of fine but C# is another story This is what I do but I want to put it in a storyboard, and yes I use the Storyboard.SetValue() for the Target and TargetProperty values. var moveCameraPositionAnimation = new Point3DAnimation() { From = new Point3D(0, 0, 0.5), To = new Point3D(0, 0, 1.2), AutoReverse = true, Duration = TimeSpan.FromMilliseconds(500) }; _focusedViewPort.Camera.BeginAnimation(ProjectionCamera.PositionProperty, moveCameraPositionAnimation); Cheers!


View Complete Post


More Related Resource Links

The number of members in the conceptual type ... does not match with the number of members on the ob

  

 Hello,

I've added a scalar property to an entity and now ASP.NET Dynamic Data scaffolding throws this error:

The number of members in the conceptual type 'TrainingModel.Users' does not match with the number of members on the object side type 'TrainingModel.Users'. Make sure the number of members are the same.

This happens at the following line in global.asax:
model.RegisterContext(typeof(TrainingModel.TrainingEntities), new ContextConfiguration() { ScaffoldAllTables = true });

Please help!
Thanks


Silverlight: Create Animations with XAML and Expression Blend

  

In this excerpt from his upcoming book, Laurence Moroney explains the basics of Silverlight animation and the animation tools available in Expression Blend.

Lawrence Moroney

MSDN Magazine August 2008


Silverlight: Building Advanced 3D Animations with Silverlight 2.0

  

Animating with Silverlight is easier than you think. Here we create a 3D app that folds a polyhedron using XAML, C#, and by emulating the DirectX math libraries.

Declan Brennan

MSDN Magazine April 2008


Advanced Basics: A Match-Making Game in Visual Basic

  

My four-year-old son has decided that he wants to be like his dad when he grows up. He is planning to work in my office, and write computer programs just like I do. But there is one problem-he thinks I write games.

Duncan Mackenzie

MSDN Magazine October 2005


The XML Files: XSLT Keys, Select vs. Match, Conflict Resolution, and More

  

This month Aaron Skonnard covers how keys work in XSLT, XSLT match and select attributes, SelectNodes order, finding