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:
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.
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.