Backgroundworker causes Carousel items to vanish

4 posts, 0 answers
  1. Jonah
    Jonah avatar
    29 posts
    Member since:
    Oct 2012

    Posted 05 Mar 2013 Link to this post

    So I run a background worker to update a progress bar on a certain part of my window, in another part I have a Carousel filled with items. as soon as I change the values of one of the properties bound to the progress bar, the Carousel items vanish. If I go set my selected item to null then set it back to its former value then it will show them again along with the animation of selecting a new item.
    Going to post below a screenshot with and without the carousel items.
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 06 Mar 2013 Link to this post

    Hi Jonah,

    Will it be possible to share a bit more information on what you are doing ? Which property do you change ?
    Generally, any code-snippets showing what you do would be helpful. 

    Kind regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Jonah
    Jonah avatar
    29 posts
    Member since:
    Oct 2012

    Posted 06 Mar 2013 Link to this post

    Ok so I was wrong on what property gets change that causes the carousel to vanish. I call an update method where the selecteditem of the carousel is passed in as a parameter

    foreach (var item in SelectedStyleGroup.OrdProducts)

    {

    ModUpdate.Update_Mods_From_Style_Group_Change(SelectedStyleGroup, item, oe, cn);

    Get_Cabinet_Cost(item, SelectedStyleGroup);

    CurrentProgress++;

    }

    ModUpdate is a static class that updates child items of the selected item. The items vanish as soon as the call is made, before any code in the class is run. SelectedStyleGroup is the selecteditem.

  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 06 Mar 2013 Link to this post

    Hello Johan,

    Will it be possible to provide enough information so that I can recreate the scenario on my side ? Or perhaps open a support ticket and attach a sample project there ?  

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top