Silverlight 2 beta 2 was just released on June 6th with lots of new features and functionality (check out Scott Guthrie's blog for specific details). Control skinning has changed slightly since in beta 1, and I just finished updating my red and flat skins for beta 2. In this update, I've template bound most of the control colors and added resources for these colors as well to make it very easy to customize the appearance for a particular need. There are several ways you can do this. One way would be to use Blend...
Another way would be to...
Here's an example of how you might do this. In this case, I'm changing the colors of all Flat controls to pink hues by simply changing three color resources.
<!-- Resources -->
<SolidColorBrush x:Key="BaseColorBrush" Color="Pink"/>
<SolidColorBrush x:Key="HoverBrush" Color="PaleVioletRed"/>
<SolidColorBrush x:Key="HyperlinkBrush" Color="PaleVioletRed"/>
And, this is what the controls would look like with these simple changes...
In this case, I'm changing the colors of all Red controls to blue and purple hues by simply changing the three color resources you see below.
<SolidColorBrush x:Key="BaseColorBrush" Color="CadetBlue"/>
<SolidColorBrush x:Key="HoverBrush" Color="Purple"/>
<SolidColorBrush x:Key="HyperlinkBrush" Color="Plum"/>
Below you'll find a link to live versions of each control set and access to my sample projects. There are a few things to keep in mind when you start digging into the projects. First, the Calendar control requires some code in order to hook up to the day and month button styles (this issue will be fixed in the future). This code is found in Page.xaml.cs. Second, the Calendar control will not template bind to colors and nor will it use global resources, so you will have to go into the Calendar style xaml and manually update each color to your desired color (this issue will be fixed in the future). Next, ToolTip is no longer stylable. I plan to create my own ToolTip control that is stylable in the near future, but until then you'll have to make due with the default style we provide for you. Lastly, you cannot style the Calendar, DatePicker, or DataGrid controls in Blend. In fact, you can't include style xaml for Calendar and DatePicker in a project you plan to open in Blend or none of the UI will render (this problem will be fixed in the future).
If you check out these styles, I'd love to know what you think about the ability to tweak the control colors, and I'd also like to know what other sorts of customizations you would like to do along these same lines. Also, is the ability to style ToolTip important to you? I can't wait to hear your feedback!
Red Skin View live...Download skin...
Flat SkinView live...Download skin...
One last thing, I'm working on updating the two other styles and hope to have these up within the next two weeks.
PingBack from http://blog.a-foton.ru/2008/06/16/red-and-flat-skins-updated-for-beta-2/
PingBack from http://www.travel-hilarity.com/airline_travel/?p=5222
Thank you very much, great job. I couldn't have done this myself (and I have tried :))!
I'm using the flat skin. I tweak the listbox style so it's more like a readonly, not selectable repeater-like control by removing yellow and the focus border for selected items.
One thing I sometimes would like to see are the arrow buttons for srolling one item at a time.
One note: the red skin's date time pickers renders the date invisible after you select a date.
I just fixed the date picker issue where after picking the date in the calendar the text is invisible in the datepicker textbox. Thanks for finding this. Also, I think I'll try to put together a version of the flat style with the scrollbar arrows after I finish updating the other two styles :)
Mino has a SL2B2 video player drop-in, Emil Stoychev on Custom Controls, Tamir Khason on a binding bug
I had a little time while traveling to South Africa so I thought I'd update my Silverlight FlickR demo
PingBack from http://www.silverlightarticles.com/?p=131
Click here to view the Silverlight Skin demo You will need the Beta 2 plugin from here . Since Silverlight
Corrina Barber updated Red & Black skins, Mike Snow on Isolated Storage, Tim Heuer on S3 and SL2B2
PingBack from http://leeontech.wordpress.com/2008/07/21/dynamic-styles/
Bunch of stuff I’ve been meaning to blog about recently, in no particular order: The SideShow Team Blog
1. 微软公司宣布发布 Virtual Earth  ASP.Net 服务器控件。