Skip to main content
Home Forums Silverlight Programming Programming with .NET - General No more support for Transform Name Property?
2 replies. Latest Post by edward_494 on October 13, 2008.
(0)
edward_494
Member
149 points
86 Posts
10-13-2008 12:37 AM |
In Beta 2 i was able to provide the name for RotateTransform or a ScaleTransform.
I used the Name property of these matrices to procedurally set animations (Storyboards). Now, in RC0, i cant specify the names.
So how do i procedurally set/update a Storyboard properties to animate a DoubleAnimation tied to a RotateTransform?
/// Note: _needle is a Line object
/// I have a _rotateTransform object, but i cant specify it below because i cannot specify its Name property!!!
_doubleAnimAngle.SetValue(Storyboard.TargetNameProperty, _needle.Name);
_doubleAnimAngle.SetValue(Storyboard.TargetPropertyProperty, new PropertyPath("Angle"));
10-13-2008 10:33 AM |
I think i'll followup by asking a simpler question.
Is the prefered method of animation a rotation by manipulating the Angle property of the object's respective RotateTransform?
If so, how can i tie the RotateTransform with the animator (e.g. DoubleAnimation)?
Thanks.
10-13-2008 2:33 PM |
Closing this thread since nobody knows the answer apparantly.
Also switching over to release version anyway, so hopefully this wont be an issue.