How to change the content of a RadTransitionControl.ContentTemplate

2 posts, 0 answers
  1. ajoua taha
    ajoua taha avatar
    25 posts
    Member since:
    Feb 2016

    Posted 06 Sep Link to this post

    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)

  2. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 08 Sep Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top