Skip to main content

Microsoft Silverlight

Answered Question What is the equivalent of HTML CSS in SilverlightRSS Feed

(0)

a_anandraj@hotmail.com
a_anandr...

Member

Member

15 points

163 Posts

What is the equivalent of HTML CSS in Silverlight

Hi

I want to define my Styles in one place and use it across all Silverlight Projects. I know we can add the styles in the App.xaml. But is there any way like CSS in HTML. Can I define it in one place and include it to the project to get my Styles Applied.

Thanks

Anandraj.A. 

 

MarkMonster
MarkMonster

Contributor

Contributor

5220 points

1,046 Posts

Re: What is the equivalent of HTML CSS in Silverlight

In Silverlight we have Styles and Templates. Maybe this site can help: http://www.silverlightshow.net/Tips/StylesAndTemplates.aspx

Mark Monster - MCPD Enterprise
http://mark.mymonster.nl
Silverlight and Expression Insiders UG

Dont forget to click "Mark as Answer" on the post that helped you.

a_anandraj@hotmail.com
a_anandr...

Member

Member

15 points

163 Posts

Re: What is the equivalent of HTML CSS in Silverlight

Thanks for the Reply.

 I am lokking for a solution in SL 2. I want to have a Styles in a separate file and load that at runtime. So that I can maintain a single file for style across Silverlight Applications.

Thanks

Anandraj.A. 

 

Amanda Wang - MSFT
Amanda W...

All-Star

All-Star

17241 points

1,466 Posts

Answered Question

Re: What is the equivalent of HTML CSS in Silverlight

 Hi Anandraj.A. ,

You can try to place your style in a separate xaml file, then you can use ImplicitStyleManager to apply the style to the control.

About how to use it you can try to refer this link: http://silverlight.net/blogs/jesseliberty/archive/2008/10/31/themes-revisited-the-implicit-style-manager.aspx

 

Amanda Wang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities