Skip to main content

Microsoft Silverlight

Jesse LibertyPresented by:
Jesse Liberty

Styles

0 0

Leave a Comment Comments (11) RSS Feed


BenHayat

Member

Participant

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


BenHayat

Member

Participant

1033 Points

#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?

..Ben


jesse...

Member

Member

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


jregehr

Member

Member

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


Bob Wood

Member

Member

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.


linds...

Member

Member

4 Points

#6 November 18, 2008 3:30 PM

this is a very helpful post...thanks


linds...

Member

Member

4 Points

#7 November 18, 2008 3:30 PM

this is a very helpful post...thanks


silidev

Member

Member

141 Points

#8 March 20, 2009 9:58 PM

WoW excellent.


bradu...

Member

Member

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.


le_be...

Member

Member

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.

Microsoft Communities