IsContentPreserved With BackgroundWorker

2 posts, 0 answers
  1. Jonah
    Jonah avatar
    23 posts
    Member since:
    Oct 2012

    Posted 08 Apr 2015 Link to this post

    I have a situation where I am trying to add items to a collection from a background thread. The collection is bound to a RadTabControl. When I add the items through the UI thread I have no issues. When I do it from a backgroundworker the current tabs will all lose focus on whatever selected items they had.

    Is there another option to show a busy indicator without having to use a background worker?

  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 13 Apr 2015 Link to this post

    Hi Jonah,

    The RadTabControl is a UI control and all interactions with it should happen on the UI thread only. We think it is very unsafe to use a thread other than than the UI thread to modify the tab control. Let us know if you have any other questions.

    Regards,
    Petar Marchev
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top