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

How to change the content of a RadTransitionControl.ContentTemplate

1 Answer 80 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
ajoua taha
Top achievements
Rank 1
ajoua taha asked on 06 Sep 2016, 02:15 PM

I have a listBox related with RadTransitionControl , when i change selected item of the listBox , i want to change all the content in the RadTransitionControl 

(Inject an other userControl)

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 08 Sep 2016, 07:48 AM
Hi,

One solution would be to bind single property from the ViewModel to the SelectedItem property of the ListBox and to the Content property of the TransitionControl. Afterwards by using ContentTemplateSelector you would be able to change the current ContentTemplate whenever the bound Content property changes.

Hope this will help you. However if this is not applicable in your scenario, I would like to ask you to share a sample project demonstrating the exact case so we can provide prompt solution.

Regards,
Kalin
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
TransitionControl
Asked by
ajoua taha
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or