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

RadTransitionControl For More Than One Control In DataTemplate?

3 Answers 188 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Larry
Top achievements
Rank 1
Larry asked on 22 Mar 2010, 03:14 PM
I have a "Slide-Show" application that displays both images (Ads) and video (commercials).   I use an Image control and a MediaElement control to show the content. Both are controlled with storyboards to animate in and out of each image or video. I saw the RadTransitionControl and I liked what I saw but am not quite sure how to use it in this scenario. Can I have the two controls in the DataTemplate?  If so how does it know which one to show at the moment? Or do I need to change "Opacity" or "Visibility" on the individual controls in the TransitionControl before the animation fires?

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 24 Mar 2010, 03:58 PM
Hello Larry,

You could think about RadTransitionControl like a regular ContentControl. When you set Content or ContentTemplate, the whole RadTransitionControl is animated. In order to animate several controls separately you need to put each of them in a RadTransitionControl.

Kind regards,
Valeri Hristov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Oded Zadok
Top achievements
Rank 1
answered on 06 Apr 2010, 11:48 AM
Hi,

I have 2 different types of controls (Grid and a listBox) written in XAML, and i want to display each time one of them via RadTransitionControl.

When i try to "switch" between of them (by set the RadTransitionControl.Content) i'm getting an exception "Value does not fall within the expected range"

How can i implement this?, I'll be happy to get a sample

Thanks,
Oded

0
Miroslav Nedyalkov
Telerik team
answered on 08 Apr 2010, 02:46 PM
Hello Oded,

 Could you please send us a sample project that reproduces the issue? This will help us investigate what the problem is an better assist you fixing your problem.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TransitionControl
Asked by
Larry
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Oded Zadok
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Share this question
or