Change Expander Button Style

2 posts, 0 answers
  1. Michael
    Michael avatar
    6 posts
    Member since:
    Feb 2011

    Posted 10 Feb 2011 Link to this post

    Hi, I'm trying to change the default expander button style in the radcolorpicker. Here is a snippet:

    <Style x:Key="ExpanderButtonStyle" TargetType="Button">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <StackPanel Orientation="Horizontal">
                          <TextBlock Text="Background Color: "/>
                          <Rectangle Width="16" Height="16" Fill="{TemplateBinding Background}"/>
                        </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    And I am getting the following error in Blend: (in attached image)

    I'm trying to make it look like attached image:

    I hope you can help me. Thanks
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 15 Feb 2011 Link to this post

    Hi Michael,

    We logged this issue in our PITS (ColorPicker: The default "ExpanderButtonStyle" cannot be edited in Expression Blend) where you will be soon able to vote for. We also updated your telerik points.
    I've attached the default style of this expander button and you will be able to modify it.
    Feel free to ask if you need further assistance.

    Regards,
    Petar Mladenov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
Back to Top