I'm pretty noob with silverlight ... and I would know how you create your resource file? I guess you didn't code directly in resource file your animation ?
Any tools(or tips) move setting from a usercontrol(page whatever) to a resource file ?
Ummm I guess is better to use resource file for driven your style/animation vs create specific user control ... Is more flexible by use resource file no?
It depend of your animations... In my case, I'm using an UserControl which contains several button (Ok, Cancel, Help)
Each button has his own animation (own storyboard).... I use this UC many time in my application so I've writing the 3 animations in my Uc "Menu" I'm not sure that it's better to use a resource file....
Wupaz
Member
3 Points
8 Posts
Best approach for create resource (style/template)
Jul 15, 2009 01:50 PM | LINK
Hi,
I'm pretty noob with silverlight ... and I would know how you create your resource file? I guess you didn't code directly in resource file your animation ?
Any tools(or tips) move setting from a usercontrol(page whatever) to a resource file ?
Wup
koyot3
Participant
805 Points
177 Posts
Re: Best approach for create resource (style/template)
Jul 15, 2009 02:03 PM | LINK
I code directly my storyboards [...] in my file. I think there is no tools to do it !
But I'm using my App.xaml fro my style...
<Application.Resources>......
May be with Blend ... Look as this it can help you
Johan
----
Please mark as answer if it help
Wupaz
Member
3 Points
8 Posts
Re: Best approach for create resource (style/template)
Jul 15, 2009 02:17 PM | LINK
You code your animation directly in resource file ? and you run each time you see the result of animation ?!?!
koyot3
Participant
805 Points
177 Posts
Re: Best approach for create resource (style/template)
Jul 15, 2009 02:27 PM | LINK
My styles (templates) are in my App.xaml file. I don't have a lot of animations so there are written in my usercontrol.xaml file
I'm using resources files for my bitmaps for example
Wupaz
Member
3 Points
8 Posts
Re: Best approach for create resource (style/template)
Jul 15, 2009 03:17 PM | LINK
Ummm I guess is better to use resource file for driven your style/animation vs create specific user control ... Is more flexible by use resource file no?
koyot3
Participant
805 Points
177 Posts
Re: Best approach for create resource (style/template)
Jul 15, 2009 03:26 PM | LINK
It depend of your animations... In my case, I'm using an UserControl which contains several button (Ok, Cancel, Help)
Each button has his own animation (own storyboard).... I use this UC many time in my application so I've writing the 3 animations in my Uc "Menu" I'm not sure that it's better to use a resource file....
msdn
Johan
----
Please mark as answer if it help you