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

Apply to a StackPanel

4 Answers 124 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
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 :

<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

Sort by
0
Louis Bouchard
Top achievements
Rank 1
answered on 14 Dec 2010, 05:04 PM
I try this and 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
George
Telerik team
answered on 16 Dec 2010, 04:24 PM
Hello Louis,

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

Regards,
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 :

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
George
Telerik team
answered on 21 Dec 2010, 07:19 PM
Hi Louis,

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.


Regards,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
TransitionControl
Asked by
Louis Bouchard
Top achievements
Rank 1
Answers by
Louis Bouchard
Top achievements
Rank 1
George
Telerik team
Share this question
or