Edit this page

Styling the RadSplitButton

The RadSplitButton can be styled by creating an appropriate Style and setting it to the Style property of the control.

You have two options:

  • To create an empty style and set it up on your own.

  • To copy the default style of the control and modify it.

This topic will show you how to perform the second one.

Modifying the Default Style

To copy the default style, load your project in Expression Blend and open the User Control that holds the RadSplitButton. In the 'Objects and Timeline' pane select the RadSplitButton you want to style. From the menu choose Object -> Edit Style -> Edit a Copy. You will be prompted for the name of the style and where to be placed.

If you choose to define the style in Application, it would be available for the entire application. This allows you to define a style only once and then reuse it where needed.

After clicking 'OK', Expression Blend will generate the default style of the RadSplitButton control in the Resources section of your User Control. The properties available for the style will be loaded in the 'Properties' pane and you will be able to modify their default values. You can also edit the generated XAML in the XAML View or in Visual Studio.

If you go to the 'Resources' pane, you will see an editable list of resources generated together with the style and used by it. In this list you will find the brushes, styles and templates needed to change the visual appearance of the RadSplitButton. Their names indicate to which part of the RadSplitButton appearance they are assigned.

  • ControlForeground_Normal - a brush that represents the foreground color of the button, when it is in Normal state.

  • ControlOuterBorder_CornerRadius - represents the value for the radius of the button's corners.

  • ControlInnerBorder_Normal - a brush that represents the inner border color of the button, when it is in Normal state.

  • ControlInnerBorder_CornerRadius - represents the value for the radius of the button's inner border corners.

  • ControlOuterBorder_Checked - a brush that represents the outer border color of the button, when it is checked.

  • ControlInnerBorder_Checked - a brush that represents the inner border color of the button, when it is checked.

  • ControlBackground_Checked - a brush that represents the background color of the button, when it is checked.

  • ControlElement_Normal - a brush that represents the fill color of the drop down indicator.

  • ControlOuterBorder_MouseOver - a brush that represents the outer border color of the button, when the mouse is over it.

  • ControlBackground_MouseOver - a brush that represents the background color of the button, when the mouse is over it.

  • ControlInnerBorder_MouseOver - a brush that represents the inner border color of the button, when the mouse is over it.

  • ControlOuterBorder_Pressed - a brush that represents the outer border color of the button, when it is pressed.

  • ControlBackground_Pressed - a brush that represents the background color of the button, when it is pressed.

  • ControlInnerBorder_Pressed - a brush that represents the inner border color of the button, when it is pressed.

  • ControlOuterBorder_DisabledChecked - a brush that represents the outer border color of the button, when it is checked and disabled.

  • ControlBackground_DisabledChecked - a brush that represents the background color of the button, when it is checked and disabled.

  • ControlInnerBorder_DisabledChecked - a brush that represents the inner border color of the button, when it is checked and disabled.

  • ControlOuterBorder_MouseOverChecked - a brush that represents the outer border color of the button, when it is checked and the mouse is over it.

  • ControlBackground_MouseOverChecked - a brush that represents the background color of the button, when it is checked and the mouse is over it.

  • ControlInnerBorder_MouseOverChecked - a brush that represents the inner border color of the button, when it is checked and the mouse is over it.

  • toggleStyle - the default Style for the Drop Down Part of the RadSplitButton.

  • buttonStyle - the default Style for the Button Part of the RadSplitButton.

  • ControlOuterBorder_Normal - a brush that represents the outer border color of the button, when it is in Normal state.

  • ControlBackground_Normal - a brush that represents the background color of the button, when it is in Normal state.

  • BooleanToOpacityConverterInstance- an IValueConverter that converts Boolean values to and from 1 and 0 opacity.

  • ControlOuterBorder_Highlighted - a brush that represents the outer border color of the button, when its DropDownContent is opened.

  • ControlInnerBorder_Highlighted - a brush that represents the inner border color of the button, when its DropDownContent is opened.

  • ControlBackground_Highlighted - a brush that represents the background color of the button, when its DropDownContent is opened.

  • ControlOuterBorder - a brush that represents the border color of the drop down area.

  • ControlBackground - a brush that represents the background color of the drop down area.

  • ControlOuterBorder_Focused - a brush that represents the outer border color of the button, when it is focused.

  • ControlBackground_Focused - a brush that represents the background color of the button, when it is focused.

  • ControlInnerBorder_Focused - a brush that represents the inner border color of the button, when it is focused.

  • ControlOuterBorder_Disabled - a brush that represents the outer border color of the button, when it is disabled.

  • ControlInnerBorder_Disabled - a brush that represents the inner border color of the button, when it is disabled.

  • ControlBackground_Disabled - a brush that represents the background color of the button, when it is disabled.

  • RadSplitButtonStyle - the default Style for the RadSplitButton.

See Also