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

IsTransitioning not working correctly

2 Answers 56 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 17 Dec 2010, 01:28 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Pana
Telerik team
answered on 22 Dec 2010, 10:54 AM
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
0
Scott
Top achievements
Rank 1
answered on 23 Dec 2010, 12:00 AM
Thanks for the reply. It is not that big of a priority to me but it would be fantastic to have this property public.
Tags
TransitionControl
Asked by
Scott
Top achievements
Rank 1
Answers by
Pana
Telerik team
Scott
Top achievements
Rank 1
Share this question
or