Expand click

2 posts, 0 answers
  1. Alessandro
    Alessandro avatar
    1 posts
    Member since:
    Nov 2010

    Posted 02 Jul 2014 Link to this post

    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?
  2. Martin
    Martin avatar
    1044 posts

    Posted 04 Jul 2014 Link to this post

    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. 

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top