This is a migrated thread and some comments may be shown as answers.

Decent way to restyle Rad(Toggle)Button

1 Answer 148 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Espen
Top achievements
Rank 1
Espen asked on 12 Apr 2011, 04:35 PM
So I wondered...Is there any decent way to restyle parts of a button? Specifically I'd like to set the background color of the button when it's selected (Checked state I believe). Seems like all tutorials out there want me to copy the whole style of the button, including style for ButtonChrome and alter these. Needless to say...the whole Theme.xaml...or whereever I put the style, makes the file look like hell. There's just so damn much markup. I can't really imagine this being necessary for such a small thing. So, what's the most reasonable way to do this, without copying the whole default style (but still keep the default part for the other things I don't change)? Possible at all?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 18 Apr 2011, 08:04 AM
Hello Espen Berglund,

It is not possible to copy only a part of the style that you want to change. On the other hand, you can edit the default style via Expression Blend which could be easier or you. If your xaml file is getting very big because of the custom styles, you can create a resource dictionary files to hold your style files.

Best wishes,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Buttons
Asked by
Espen
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or