Hi,
I am trying to customize the Drop Down button of the Color Picker and I am running into all kinds of problems.
I tried Examples from your previous threads and they dont seem to work, specially the one "250018_ColorPickerExpanderStyle.zip"
The application keeps on crashing.
I did change the style property from "ExpanderButtonStyle" to "ColorButtonStyle" and it seem work, however I cannot change the width.
It does not matter what I set the width to it seems to not change. I would like to make the expander button wider.
Using 2011 Q2 version.
Here is the style code:
Here is the ColorPicker Code:
Please help.
Thanks
I am trying to customize the Drop Down button of the Color Picker and I am running into all kinds of problems.
I tried Examples from your previous threads and they dont seem to work, specially the one "250018_ColorPickerExpanderStyle.zip"
The application keeps on crashing.
I did change the style property from "ExpanderButtonStyle" to "ColorButtonStyle" and it seem work, however I cannot change the width.
It does not matter what I set the width to it seems to not change. I would like to make the expander button wider.
Using 2011 Q2 version.
Here is the style code:
<
telerik:RadWindow.Resources
>
<
Style
x:Key
=
"MyColorButtonStyle"
TargetType
=
"Button"
>
<
Setter
Property
=
"Width"
Value
=
"100"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"Button"
>
<
StackPanel
>
<
TextBlock
Text
=
"Fill In Color"
/>
<
Rectangle
Margin
=
"2"
Width
=
"16"
Height
=
"16"
Fill
=
"{TemplateBinding Background}"
/>
</
StackPanel
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
telerik:RadWindow.Resources
>
Here is the ColorPicker Code:
<
StackPanel
Orientation
=
"Horizontal"
Grid.Row
=
"2"
Grid.Column
=
"1"
>
<
telerik:RadColorPicker
x:Name
=
"_colorPicker"
Height
=
"25"
Width
=
"100"
SelectedColor
=
"Red"
ColorButtonStyle
=
"{StaticResource MyColorButtonStyle}"
/>
<
Slider
x:Name
=
"SliderA"
Width
=
"100"
Height
=
"25"
Orientation
=
"Horizontal"
Maximum
=
"255"
SmallChange
=
"1"
>
<
Slider.Background
>
<
LinearGradientBrush
StartPoint
=
"0,0.5"
EndPoint
=
"1,0.5"
>
<
GradientStop
x:Name
=
"GradientStopA0"
Color
=
"#00000000"
Offset
=
"0.0"
/>
<
GradientStop
x:Name
=
"GradientStopA1"
Color
=
"#FF000000"
Offset
=
"1.0"
/>
</
LinearGradientBrush
>
</
Slider.Background
>
</
Slider
>
</
StackPanel
>
Please help.
Thanks