Transition in Templated Control on Style Change

2 posts, 0 answers
  1. jason
    jason avatar
    28 posts
    Member since:
    Oct 2010

    Posted 18 Aug 2011 Link to this post

    I have a templated control that works as a Pivot Grid.  The grid pivots by changing styles of the control and I was wondering how I can apply a Transition when the style changes.  I tried creating a RadTransitionControl in my code and setting the content to the control and also tried the style.  I also tried an element binding to the control with path equal to the style.  Still no luck.

  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 23 Aug 2011 Link to this post

    Hello Jason,

    Putting a TransitionControl in the style will cause creation of a new instance of the control template. I can suggest you to try the following: put the control in the TransitionControl and when you change the style, set up the transition manually.

    Please give it a try and let us know how did that go.

    Kind regards,
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top