Skip to main content
Home Learn Videos Silverlight Videos Styles
Presented by:Jesse Liberty
May 29, 2008 | Duration: 21:43
Login to Rate
:( Error
0 0
Select Your Format
In this video Jesse Liberty demonstrates the advantages of factoring out style information from individual control instances into Style objects.
Member
1033 Points
#1 May 31, 2008 3:44 AM
Jesse, do you know if Bet2 will allow to create and use styles visually in Blend and/or VS?
..Ben
#2 May 31, 2008 5:03 AM
Jesse, came up with second question. Is it possible to use style within style? Just to refactor some of the same Setters in another style and point to it from different styles?
498 Points
#3 May 31, 2008 4:36 PM
We're not saying what is in Blend2 until we release Blend 2 but that is RSN. And no, I don't think you can nest styles nor derive from styles nor mass apply them -- but remember, we're not done so anything can happenn in the future. That isn't based on any plans I know of, just a statement of fact, Silverlight is still a toddler.
-j
13 Points
#4 June 02, 2008 6:11 PM
Jesse,
Is there a way to dynamically swap out styles in a Silverlight application? Here's my scenario: I'm building a Silverlight app that will need to have a different look and feel depending on the client who logs in. The only thing I've been able to think of at this time is to compile different versions of my xap where each version is compiled with a different App.xaml file in place. Do you have any more elegant suggestions?
It seems like it would be nice to be able to export styles to a totally separate XAML file and load it at run time (the style will not need to change over the life of an instance of the Silverlight app). I've not found a way to do that. Does Silverlight not support DynamicResource instead of StaticResource?
Thanks,
- Jonathan
1 Points
#5 July 09, 2008 1:11 PM
As Jesse says, Silverlight is a mere toddler but it is such a shame that it couldn't learn from some of its older siblings.
Why is it that the wheel must be re-invented EVERY time. Cascading style sheets may not be "leading edge", or sexy or de rigueur but they would have offered a significantly enhanced styling model for Silverlight (i.e. CASCADING) plus they could have been available to UI designers WITHOUT resorting to hacking App.xaml.
I am absolutely sure the developers of Silverlight will wax lyrical about why the styling model employed is superior and after all, what do I know, I'm just the "Joe" that has to make this all work for customers.
4 Points
#6 November 18, 2008 3:30 PM
this is a very helpful post...thanks
#7 November 18, 2008 3:30 PM
141 Points
#8 March 20, 2009 9:58 PM
WoW excellent.
66 Points
#9 April 24, 2009 8:36 PM
Hi, at www.xamltemplates.net/sl you can see a whole theme for all the silverlight controls, check it out.
30 Points
#10 May 14, 2009 12:49 PM
Thanks Jesse for the video
Ref: Silverlight forum, "style object in App.xaml causing blank page/control preview"
Users have found that making style object in App.xaml causing blank page/control preview. do you have a fix other than putting the style object in the control.
Regards
You must be logged in to leave a comment. Click here to log in.