ColorPicker Button Style

5 posts, 2 answers
  1. Cuthahotha
    Cuthahotha avatar
    81 posts
    Member since:
    Sep 2008

    Posted 08 Dec 2010 Link to this post

    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
  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 13 Dec 2010 Link to this post

    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
  3. DevCraft banner
  4. Cuthahotha
    Cuthahotha avatar
    81 posts
    Member since:
    Sep 2008

    Posted 14 Dec 2010 Link to this post

    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.
  5. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 20 Dec 2010 Link to this post

    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
  6. Cuthahotha
    Cuthahotha avatar
    81 posts
    Member since:
    Sep 2008

    Posted 20 Dec 2010 Link to this post

    Perfect.  Thank you so much!!
Back to Top
DevCraft banner