RadTransitionControl For More Than One Control In DataTemplate?

4 posts, 0 answers
  1. Larry
    Larry avatar
    33 posts
    Member since:
    Apr 2009

    Posted 22 Mar 2010 Link to this post

    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?
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 24 Mar 2010 Link to this post

    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.
  3. DevCraft banner
  4. Oded Zadok
    Oded Zadok avatar
    7 posts
    Member since:
    Mar 2010

    Posted 06 Apr 2010 Link to this post

    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

  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 08 Apr 2010 Link to this post

    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.
Back to Top