Skip to main content

Microsoft Silverlight

Answered Question Run-time animationsRSS Feed

(0)

anomaly100
anomaly100

Member

Member

4 points

5 Posts

Run-time animations

Hi,

I have numerous buttons that are created from XAML at run-time. Ideally I'd like to apply an animation to each of these buttons, the same animation for all (i.e. just a general mouse enter/leave animation).

 Is it possible to create a storyboard and NOT specify a target, so that the same storyboard can be applied to multiple objects?

 As the buttons are created at run-time, as far as I know, no x:name can be created for them to use as a target, and having the same storyboard for each button doesn't seem practicle.

Any ideas? Any input is appreciated.

Cheers

WynApse
WynApse

Star

Star

8456 points

342 Posts

Silverlight MVP
Answered Question

Re: Run-time animations

Hi ...

 I just posted a solution to this thread: http://silverlight.net/forums/t/1553.aspx

and I believe it addresses your question as well.

 If not, let me know :)

-Dave

Stay in the 'Light
Silverlight MVP
http://www.wynapse.com

anomaly100
anomaly100

Member

Member

4 points

5 Posts

Re: Re: Run-time animations

That seems to be exactly what I'm looking for :-) I'll give it a go!

 Cheers Dave

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities