Skip to main content

Microsoft Silverlight

Answered Question Including one XAML file in another XAML fileRSS Feed

(0)

ebirrell
ebirrell

Member

Member

8 points

13 Posts

Including one XAML file in another XAML file

Hi,

This may have a very simple answer, but I can't work out how to do what I'm wanting:

I have a silverlight application with a lot of animations (storyboards). Some of them I would like to always include. I would like to choose which of the others to included dynamically (in app.xaml.cs or page.xaml.cs). I was thinking of putting each of the animation sets in it's own XAML file and simply including the appropriate file(s).

Does anyone know how to do this?

Thanks!

mchlsync
mchlsync

Star

Star

14606 points

2,730 Posts

Silverlight MVP
Answered Question

Re: Including one XAML file in another XAML file

I think it's possible. You may load those XAML using XamlReader on the fly.  

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities