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

Expand click

1 Answer 125 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Alessandro
Top achievements
Rank 1
Alessandro asked on 02 Jul 2014, 10:00 AM
I would like to make an Expander is expanded or collapsed only if you clicked on the button to the left and not if you click the header.

The thing is possible?

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 04 Jul 2014, 06:47 AM
Hi Alessandro,

I already answered your question in your support ticket, but I will post my answer also here, so that it will be available for our community.

The header of the RadExpander is placed in a RadToggleButton which means that if you want to expand the content only when the arrow is clicked you will need to modify the ControlTemplate of the RadExpander. In general you can find the LayoutTransformControl with x:Name se to "HeaderContentTransform" and place it inside the toggle button. You can see how to extract a ControlTemplate in the Editing Control Templates help article.

For your convenience I prepared a project with the extracted and modified template. 


Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Expander
Asked by
Alessandro
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or