Louis Bouchard
Top achievements
Rank 1
Louis Bouchard
asked on 14 Dec 2010, 04:44 AM
Hi,
Someone can tell me how to apply a transition to a StackPanel. I try to wrap it like this without success :
Someone can tell me how to apply a transition to a StackPanel. I try to wrap it like this without success :
<
telerik:RadTransitionControl
Duration
=
"00:00:01"
>
<
telerik:RadTransitionControl.Transition
>
<
telerik:PixelateTransition
></
telerik:PixelateTransition
>
</
telerik:RadTransitionControl.Transition
>
<
ContentControl
>
<
StackPanel
x:Name
=
"StackPanel1"
...
...
<StackPanel>
</
ContentControl
>
</
telerik:RadTransitionControl
>
4 Answers, 1 is accepted
0
Louis Bouchard
Top achievements
Rank 1
answered on 14 Dec 2010, 05:04 PM
I try this and no transition :
And this with no transition :
<
telerik:RadTransitionControl
Duration
=
"00:00:01"
>
<
telerik:RadTransitionControl.Transition
>
<
telerik:SlideAndZoomTransition
></
telerik:SlideAndZoomTransition
>
</
telerik:RadTransitionControl.Transition
>
<
telerik:RadTransitionControl.Content
>
<
Image
x:Name
=
"der"
Source
=
"/test;component/images/casquesecurite.png"
Width
=
"211"
Height
=
"162"
Stretch
=
"Uniform"
></
Image
>
</
telerik:RadTransitionControl.Content
>
</
telerik:RadTransitionControl
>
And this with no transition :
<
telerik:RadTransitionControl
Duration
=
"00:00:01"
>
<
telerik:RadTransitionControl.Transition
> <
telerik:SlideAndZoomTransition
></
telerik:SlideAndZoomTransition
>
</
telerik:RadTransitionControl.Transition
>
<
telerik:RadTransitionControl.ContentTemplate
>
<
DataTemplate
>
<
Image
x:Name
=
"sdffddd"
Source
=
"/test;component/images/casquesecurite.png"
Width
=
"211"
Height
=
"162"
Stretch
=
"Uniform"
></
Image
>
</
DataTemplate
>
</
telerik:RadTransitionControl.ContentTemplate
>
</
telerik:RadTransitionControl
>
0
Hello Louis,
George
the Telerik team
Thank you for contacting us.
The RadTransitionControl applies transition effects upon changing its content. Please, refer to our online documentation - http://www.telerik.com/help/silverlight/radtransition-getting-started.html
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Louis Bouchard
Top achievements
Rank 1
answered on 16 Dec 2010, 05:01 PM
Hi George,
Ok I see that. So I code those lines :
BTW, I need to execute another animation after the first animation and I don't see any event like :
OnTransitionFinished or
OnTransitionTerminated or
OnTransitionCompleted
How I can know when a transition is finished?
Ok I see that. So I code those lines :
private void LoginBorder_Loaded(object sender, RoutedEventArgs e)
{
RadTransitionControlLogin.PrepareAnimation();
LoginBorder.Visibility = System.Windows.Visibility.Visible;
RadTransitionControlLogin.StartAnimation();
}
BTW, I need to execute another animation after the first animation and I don't see any event like :
OnTransitionFinished or
OnTransitionTerminated or
OnTransitionCompleted
How I can know when a transition is finished?
0
Hi Louis,
George
the Telerik team
Unfortunately, this scenario is not supported out-of-the-box for RadTransitionControl. Sorry for any inconvenience caused. We will consider adding such event in one of our future releases.
Please do not hesitate to contact us if you require any further information.
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight