Hello!
ColorButtonStyle is obsolete property. So I want to use SplitButtonStyle to customize ButtonPart.
When I apply SplitButtonStyle to RadColorPicker it make no difference, but it is ok when I apply this style to SplitButton itself.
Control's version is 2014.1.224.40
Styles:
The way I use them:
ColorButtonStyle is obsolete property. So I want to use SplitButtonStyle to customize ButtonPart.
When I apply SplitButtonStyle to RadColorPicker it make no difference, but it is ok when I apply this style to SplitButton itself.
Control's version is 2014.1.224.40
Styles:
<
Style
TargetType
=
"Button"
x:Key
=
"ColorButtonStyle"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"Button"
>
<
Grid
Height
=
"25"
Background
=
"Transparent"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"0.664*"
/>
<
RowDefinition
Height
=
"0.336*"
/>
</
Grid.RowDefinitions
>
<
TextBlock
Text
=
"Y"
HorizontalAlignment
=
"Center"
Foreground
=
"Red"
/>
<
Rectangle
Width
=
"16"
Margin
=
"-2 0 0 0"
Fill
=
"{TemplateBinding Background}"
Height
=
"4.232"
Grid.Row
=
"1"
VerticalAlignment
=
"Top"
/>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"Background"
Value
=
"Black"
/>
</
Style
>
<
Style
TargetType
=
"telerik:RadSplitButton"
x:Key
=
"SplitButtonStyle"
>
<
Setter
Property
=
"ButtonPartStyle"
Value
=
"{StaticResource ColorButtonStyle}"
/>
</
Style
>
The way I use them:
<
telerik:RadColorPicker
SplitButtonStyle
=
"{StaticResource SplitButtonStyle}"
/>
<
telerik:RadSplitButton
Style
=
"{StaticResource SplitButtonStyle}"
/>