This is a migrated thread and some comments may be shown as answers.

Completely Change Togglebutton

1 Answer 111 Views
Expander
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steve
Top achievements
Rank 1
Steve asked on 24 Jan 2012, 05:21 PM
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

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 27 Jan 2012, 10:41 AM
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 >>

Tags
Expander
Asked by
Steve
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or