IsTransitioning not working correctly

3 posts, 1 answers
  1. Scott
    Scott avatar
    66 posts
    Member since:
    Nov 2009

    Posted 16 Dec 2010 Link to this post

    I wanted to do something similar to your TransitionControl first look page but I also wanted to disable the navigation buttons when the control is in transition. I found the IsTransitioning property and that looks like it should do what I want. I bound to this property through an inverse converter and found that the control gets disabled for a split second then gets set back. I placed a time in the converter to look at then IsTransitioning is set back to false and it immedietely happens (down to the same millisecond) after being set to true. This happens even when I set the TransitionControl duration to 5 seconds. Is there some other property I should use to know when the control is in transition or is IsTransitioning not working correctly.

    BTW: I'm using the 2010 Q3 release
  2. Answer
    Pana
    Admin
    Pana avatar
    748 posts

    Posted 22 Dec 2010 Link to this post

    Hi Scott,

    The IsTransitioning is set to true during the content swap something like:

    IsTransitioning = true;
    Content = newContent;
    IsTransitioning = false;

    So it does not work in your scenario.

    However the scenario you describe sounds reasonable enough so we will consider a feature that would expose IsAnimating property that will behave the way you have described.

    For the moment you will have to create a wrapper control around the RadTransitionControl that would expose such property or implement it different logic in the view model. The Animation duration is known prior to content change so when the IsTransitioning get set to true you can disable the buttons, start a timer and re-enable the buttons when the timer runs out. This would be quite tricky though.

    Kind regards,
    Pana
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. Scott
    Scott avatar
    66 posts
    Member since:
    Nov 2009

    Posted 22 Dec 2010 Link to this post

    Thanks for the reply. It is not that big of a priority to me but it would be fantastic to have this property public.
Back to Top