Turning off virtualization when bound to tab control items source

3 posts, 1 answers
  1. Igor Stefanovic
    Igor Stefanovic avatar
    10 posts
    Member since:
    May 2010

    Posted 27 May 2011 Link to this post


    I am using tab control in main window to dynamically load content in tab items. I am doing this by binding collection of my page view models to the items source of the tab control. Everything works fine except it seams like view of my page models is reloading each time I select another tab and then return to one I just left. I suppose this is related to virtualization.

    Problem with this is that switching tabs can be slow or unresponsive and also all property changes on the view not bind to view model are lost when you switch tab.

    Is it possible to change this behavior and make tab content static? 

  2. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 28 May 2011 Link to this post

    Hello Igor,

    We had such requests before so we introduced a new property called IsContentPreserved. Please take a look at this help article for further information and let me know if you encounter any problems.

    Regards,
    Kiril Stanoev
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Igor Stefanovic
    Igor Stefanovic avatar
    10 posts
    Member since:
    May 2010

    Posted 28 May 2011 Link to this post

    Just what I need. Thanks Kiril.
Back to Top