Completely Change Togglebutton

2 posts, 0 answers
  1. Steve
    Steve avatar
    36 posts
    Member since:
    Feb 2011

    Posted 24 Jan 2012 Link to this post

    Hi there,

    I'm trying to re-Template the ToggleButton part of the RadExpander so that it contains an image. (Just an image wrapped by the ToggleButton)

    I plan to set the source of this Image depending on further buttons inside the content of the RadExpander.

    I have found where the Circles and Arrow are in the Template, but I'm struggling to get an image in there.

    Can someone please show me the correct way to do this?


    Thanks in advance
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 27 Jan 2012 Link to this post

    Hi Ben,

    I attached a sample project demonstrating how you can modify the default ControlTemplate of the RadExpander to use an image in the expander button.

    Please keep in mind that once you replace the default elements of the expander button with an image, you will need to go through the RadExpander VisualStates to modify them accordingly.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top