The RadTransitionControl can be very useful when you want to switch between controls. In this blog post I will explain two common scenarios:
1) Switching between 2 UserControls, which is applicable for both WPF and Silverlight and
2) Creating attractive navigation between pages very easy, applicable for Silverlight.
1) For this approach you will need to create 2 UserControls. In the root page define a RadTransitionControl and give it a x:Name. Then, on a button click change the Content property of the TransitionControl with the chosen UserControl.
Here you can find attached you will find a simple WPF example of the above-mentioned technique.
2) For the second scenario we need to create a navigation Frame and add the RadTransitionControl in the Template of the Frame. For that we need to declare the following namespaces:
And the XAML code for the navigation Frame in the main page will look like:
Then, in the constructor of the page that contains the Frame, navigate to the first of our pages:
Each Page, which will be navigated to, can have Next and Forward buttons. One simple page can look like this:
Here attached you will find also the full example code for this scenario.
Subscribe to be the first to get our expert-written articles and tutorials for developers!
All fields are required