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

Set TransitionControl properties in cs code

1 Answer 105 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
javier
Top achievements
Rank 1
javier asked on 31 Mar 2011, 01:17 PM
Hi,

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?

Gretings

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 05 Apr 2011, 04:57 PM
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,
Yana
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
Tags
TransitionControl
Asked by
javier
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or