Udostępnij za pośrednictwem


Rough Skin for Silverlight Beta 2 Is Easy to Customize

One thing that I forgot to mention about the Silverlight beta 2 rough skin is that it is very easy to customize now. At the top of the Page.xaml file in my sample project are several resources that can be used to quickly change the colors for all controls. In the example below I have changed the BaseColroBrush and HyperlinkBrush to Tomato and I've changed the HoverBrush to WhiteSmoke, and the controls all update nicely to reflect the new color theme...

<!-- Resources -->

<SolidColorBrush x:Key="BaseColorBrush" Color="Tomato"/>

<SolidColorBrush x:Key="BorderBrush" Color="#FF333333"/>

<SolidColorBrush x:Key="ForegroundBrush" Color="#FF333333"/>

<SolidColorBrush x:Key="HoverBrush" Color="WhiteSmoke"/>

<SolidColorBrush x:Key="HyperlinkBrush" Color="Tomato"/>

 

Comments

  • Anonymous
    August 04, 2008
    PingBack from http://wordnew.acne-reveiw.info/?p=15984
  • Anonymous
    August 13, 2008
    Bill Reiss on Embedding fonts, .net Curry on hosting SL Content, Corrina Barber updated another SL2 skin
  • Anonymous
    November 17, 2008
    The WPF Themes CodePlex project has been updated, 4 Themes and 2 new controls were added!!! Controls
  • Anonymous
    November 18, 2008
    The comment has been removed
  • Anonymous
    March 31, 2009
    Hi, at http://www.xamltemplates.net/sl you will see a live Silverlight theme for all the controls