| Paulio's profileIT BytesBlogListsGuestbook | Help |
|
August 22 Using Blend to set the colour of the text in a buttonSilverlight & Blend try and encourage you to separate styles and structure in much the same way as you should with HTML and CSS. However, Blend can be confusing as it will offer up some properties to be changed but “hide” others. One example of this is the seemingly simple task of changing the colour of the text in a button. You’d be forgiven for thinking you can select the button and directly edit the foreground colour since the background is available. You must ignore this temptation, if you don’t attempt to make style changes directly to the structure (control) then you’ll avoid a lot of confusion. I’ve created a little tutorial to show one way of solving this;
So the “take home” from this is don’t make style changes directly to your controls always look at changing the separate style xaml, not only will you have better separation but you’ll avoid a lot of frustration when trying to find the property you want to change. Comments (2)
TrackbacksThe trackback URL for this entry is: http://pdkm.spaces.live.com/blog/cns!D1DDEC9FF002FB8C!1163.trak Weblogs that reference this entry
|
|
|