Issue while implemeneting MEF

1 posts, 0 answers
  1. Gabi
    Gabi avatar
    7 posts
    Member since:
    Jun 2011

    Posted 10 Jan 2013 Link to this post


    My application xap size is more than 5MB, so i decided to split application in different module and load them on demand.
    I have tab control and based on selection done in first tab i am loading other tab item (each tab item will contain content from one xap)

    I implemented that and it is working fine to.but in some cases due to some problem tab items are loaded two time, one based on pervious selection and one for last selection for (as per logic implemented it should only loaded item based on last selection)
    Ex.., if on first selection 2 new tab item are added , i closes newly added tab item and  on second selection 3 new and different tab items was supposed to get added (as per logic) but i am getting 2 old tabitems with old data and 3 new tab items

    I verified logic atleast 10 times.and one interesting fact that i found is 'OnImportsSatisfied' method is getting called multiple time.

Back to Top