Animations after change the ContentTemplate doesn't work

2 posts, 0 answers
  1. Ângelo Moreira
    Ângelo Moreira avatar
    11 posts
    Member since:
    Jan 2010

    Posted 19 Apr 2011 Link to this post

    Hi there,

    I'm having a problems with the transitions in this particular scenario:
    I want to change in code behind the Content of my RadTransitioncontrol, as well as the ContentTemplate and the Transition.
    So i wrote the following code:

    //Switch to TILE mode
    if (layoutMode.Equals(SlideshowLayoutMode.Tile))
         this.RadTransitionControl_Root.Transition = this.switchModeTransition;
         this.RadTransitionControl_Root.ContentTemplate = (DataTemplate)this.Resources["ImageTemplateTile"];
         Binding tileBinding = new Binding("AllImages");
         this.RadTransitionControl_Root.SetBinding(RadTransitionControl.ContentProperty, tileBinding);
    //Switch to SEQUENCE mode
         this.RadTransitionControl_Root.ContentTemplate = (DataTemplate)this.Resources["ImageTemplateSequence"];
         Binding sequenceBinding = new Binding("ImageSrc");
         this.RadTransitionControl_Root.SetBinding(RadTransitionControl.ContentProperty, sequenceBinding);
         this.RadTransitionControl_Root.Transition = this.sequenceTransition;

    But the transition doesn't work in two cases:
    1) The first time i change to TILE mode
    2) Every time i change to TILE mode after a NotifyPropertyChanged of the Property "ImageSrc" happend.

    Some help would be nice,
    Ângelo Moreira.

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 22 Apr 2011 Link to this post

    Hi Ângelo,

    I tried to reproduce the problem you are observing, but I couldn't. Please take a look to the attached sample project and let me know if I'm missing something. If you could change this project in a way that it demonstrates the problem and send it back to us or prepare another one that reproduces the issue, this would be of great help.

    Could you also please let us know what exactly doesn't work - does it throw exception, does it change the content without transition or something else?

    All the best,
    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