Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > ColorPicker > Width of ColorPicker control

Not answered Width of ColorPicker control

Feed from this thread
  • Peter avatar

    Posted on Jul 27, 2010 (permalink)

    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

    Reply

  • Viktor Tsvetkov Viktor Tsvetkov admin's avatar

    Posted on Jul 28, 2010 (permalink)

    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

    Reply

  • Alexey Oyun avatar

    Posted on Oct 1, 2010 (permalink)

    Hi,
    It would be nice, if you could provide direct link to PITS issue :)
    Thanks, Alex.

    Reply

  • Viktor Tsvetkov Viktor Tsvetkov admin's avatar

    Posted on Oct 1, 2010 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > ColorPicker > Width of ColorPicker control
Related resources for "Width of ColorPicker control"

Silverlight ColorPicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]