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

Width of ColorPicker control

3 Answers 48 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 2
Peter asked on 27 Jul 2010, 10:53 AM
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

3 Answers, 1 is accepted

Sort by
0
Viktor Tsvetkov
Telerik team
answered on 28 Jul 2010, 04:54 PM
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
0
Alexey Oyun
Top achievements
Rank 1
answered on 01 Oct 2010, 01:40 PM
Hi,
It would be nice, if you could provide direct link to PITS issue :)
Thanks, Alex.
0
Viktor Tsvetkov
Telerik team
answered on 01 Oct 2010, 02:10 PM
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
Tags
ColorPicker
Asked by
Peter
Top achievements
Rank 2
Answers by
Viktor Tsvetkov
Telerik team
Alexey Oyun
Top achievements
Rank 1
Share this question
or