Set TransitionControl properties in cs code

2 posts, 0 answers
  1. javier
    javier avatar
    13 posts
    Member since:
    Mar 2011

    Posted 31 Mar 2011 Link to this post


    I want to set a transition effect ( for example SlideAndZoomTransition or MotionBlurredZoomTransition) and the SlideDirection Attribute in my RadTransitionControl dinamically using the C# in the code behind.
    this is what i have actually in the xaml:




    <telerik:RadTransitionControl x:Name="transitionRight" Grid.RowSpan="3" Grid.Column ="1" >


    <telerik:RadTransitionControl.Transition >


    <effects:SlideAndZoomTransition SlideDirection ="RightToLeft"/>


    </telerik:RadTransitionControl.Transition >



    </telerik:RadTransitionControl >





    i want to change the effect and slide direction attr. when a click a button.
    its Posible to do this?

  2. Yana
    Yana avatar
    4547 posts

    Posted 05 Apr 2011 Link to this post

    Hi javier,

    You can change the transition effect of RadTransitionControl in code-behind like this:

    transitionRight.Transition = new SlideAndZoomTransition() {
                  SlideDirection = FlowDirection.LeftToRight };

    Hope this helps.

    Kind regards,
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top