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:
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
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