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

ColorPicker Button Style

4 Answers 153 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Cuthahotha
Top achievements
Rank 1
Cuthahotha asked on 08 Dec 2010, 04:54 PM
I'm tyring to use the color picker to pick background colors for a form.  The two styles I see for the button include a "A" and the color, and a "Highlight" icon.  I'd like to style the button to just show the color selected with no additional adornments.

Suggestions?

Thanks,
Steve

4 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 13 Dec 2010, 06:59 PM
Hello Cuthahotha,

I am not really sure how you need to style the ColorPicker, therefore I wanted to ask you to elaborate more on that or perhaps send us a snapshot of what you need. Still, I attached a sample project illustrating how you can edit the ColorButtonStyle in order to display only the SelectedColor. I hope that will help.

Kind regards,
Tina Stancheva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Cuthahotha
Top achievements
Rank 1
answered on 14 Dec 2010, 10:42 PM
Tina, Thanks.  The project does 90% what I'm looking for.  The last little bit would be the ability to style the actual rectangle.  I can't seem to get it to widen any.  I'd like to be able to set the width to about 100 and the height to 17 to make more rectangle.  I'm not using this on a button bar, but in a bigger form.
0
Accepted
Tina Stancheva
Telerik team
answered on 20 Dec 2010, 12:52 PM
Hello Cuthahotha,

Please accept my apology for the delayed response. In order to change the size of the button, you will need to edit the RadColorPicker style and its ToggleButton element style to reflect the required width/height. I modified the project to illustrate this approach.

I hope this info will help.

Best wishes,
Tina Stancheva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Cuthahotha
Top achievements
Rank 1
answered on 20 Dec 2010, 01:50 PM
Perfect.  Thank you so much!!
Tags
ColorPicker
Asked by
Cuthahotha
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Cuthahotha
Top achievements
Rank 1
Share this question
or