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

Animations after change the ContentTemplate doesn't work

1 Answer 66 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Ângelo Moreira
Top achievements
Rank 1
Ângelo Moreira asked on 19 Apr 2011, 03:11 PM
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
else
{
     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,
Thanks,
Ângelo Moreira.

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 22 Apr 2011, 04:30 PM
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
Tags
TransitionControl
Asked by
Ângelo Moreira
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or