Apply to a StackPanel

5 posts, 0 answers
  1. Louis Bouchard
    Louis Bouchard avatar
    94 posts
    Member since:
    Feb 2010

    Posted 13 Dec 2010 Link to this post

    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>      
  2. Louis Bouchard
    Louis Bouchard avatar
    94 posts
    Member since:
    Feb 2010

    Posted 14 Dec 2010 Link to this post

    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>
  3. DevCraft banner
  4. George
    Admin
    George avatar
    1332 posts

    Posted 16 Dec 2010 Link to this post

    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
  5. Louis Bouchard
    Louis Bouchard avatar
    94 posts
    Member since:
    Feb 2010

    Posted 16 Dec 2010 Link to this post

    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?
  6. George
    Admin
    George avatar
    1332 posts

    Posted 21 Dec 2010 Link to this post

    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
Back to Top
DevCraft banner