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

Transitioning Between UserControls

3 Answers 118 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Marcel asked on 23 Nov 2011, 06:38 PM
Hi, 

So i have been experimenting with the RadTransitionControl  using a ListBox and some simple data classes. This work fine. 

But I have some usercontrol's which I have previously created and would like to transition between them. How would this work?

Would I create an ObservableCollection of UserControls? What would you add in the DataTemplate? This is what I had for my simple data class example. Then I changed the collection to a Collection of UserControls:

//List of UserControls
<ListBox x:Name="ListOfUserControls"
         ItemsSource="{Binding Path=Collection}" Visibility="Collapsed"/>

 <telerik:RadTransitionControl Grid.Column="1" Content="{Binding SelectedItem,
 ElementName=ListOfUserControls}" Margin="104,0,113,0">
            <telerik:RadTransitionControl.ContentTemplate>
                <DataTemplate>
                   //WHAT WOULD GO HERE
                </DataTemplate>
            </telerik:RadTransitionControl.ContentTemplate>

Any help of this would be great. 

Thanks

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 25 Nov 2011, 09:08 AM
Hello,

Keeping a collection of UserControls usually is not a good idea because it might lead to memory leaks (the controls will not be freed until the collection is freed). Our examples demonstrate how to use the Silverlight navigation framework with the same final effect:
http://demos.telerik.com/silverlight/#TransitionControl/FirstLook

This is a little bit more complex, bug is generally a better approach.

Kind regards,
Valeri Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Hermano
Top achievements
Rank 1
answered on 27 Jan 2012, 11:57 AM
Hello,

It (TransitionControl/FirstLook) does not work within a RadWindow.

0
Miroslav Nedyalkov
Telerik team
answered on 01 Feb 2012, 09:35 AM
Hello Hermano,

What problem do you observe when you try putting TransitionControl into RadWindow control? If you could share with us some code this could be of great help.

Regards,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TransitionControl
Asked by
Marcel
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Hermano
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Share this question
or