Skip to main content

Microsoft Silverlight

No more support for Transform Name Property?RSS Feed

(0)

edward_494
edward_494

Member

Member

149 points

86 Posts

No more support for Transform Name Property?

 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"));

edward_494
edward_494

Member

Member

149 points

86 Posts

Re: No more support for Transform Name Property?

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.

edward_494
edward_494

Member

Member

149 points

86 Posts

Re: No more support for Transform Name Property?

Closing this thread since nobody knows the answer apparantly.

Also switching over to release version anyway, so hopefully this wont be an issue.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities