Width of ColorPicker control

4 posts, 0 answers
  1. Peter
    Peter avatar
    1 posts
    Member since:
    Jun 2012

    Posted 27 Jul 2010 Link to this post

    Hello all

    Im sure I must have missed something, can anyone please tell me how to set the width of the colorpicker control, i have changed the default ColorButtonStyle to the following:

    <Style x:Key="ColorButtonStyle" TargetType="Button">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Border Width="100" x:Name="BackgroundGradient" BorderThickness="1" Background="{TemplateBinding Background}"/>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Background" Value="Black" />
                </Style>


    However, whatever I do, it seems that I cannot get the ColorPicker to expand to the size of 100px in width - it remains the same size... Setting the Width property on the control, aswell as the MinWidth property does nothing either.

    What i would like is that the colorbuttonstyle has a rectangular solid color area (of 100px).

    Hope someone are able to help out, an example would be nice ;)

    Best regards
    Peter
  2. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 28 Jul 2010 Link to this post

    Hi Peter,

    Currently you can not change the width of the button because the RadColorPicker has fixed width. I have logged this issue in our public issue tracking system under the name "ColorPicker: Modify the width of the ColorPicker not to be fixed" and it will be available for tracking and voting tomorrow the latest.

    On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverlight applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

    All the best,
    Viktor Tsvetkov
    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
  3. DevCraft banner
  4. Alexey Oyun
    Alexey Oyun avatar
    74 posts
    Member since:
    Mar 2010

    Posted 01 Oct 2010 Link to this post

    Hi,
    It would be nice, if you could provide direct link to PITS issue :)
    Thanks, Alex.
  5. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 01 Oct 2010 Link to this post

    Hi Alexey Oyun,

    You can find it here.

    Best wishes,
    Viktor Tsvetkov
    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
Back to Top