Niner since 2010
Great Video Mike,
I followed through using VB and duplicated your efforts. It's starting to make sense for me now.
Yes I did catch that bit after I asked the question. Thanks.
I created an example very similiar to yours. One change I made was to have the object being created in the main page scoped as being private and not public. When I did this I get an error message
"Attempt by method 'System.ComponentModel.Composition.ReflectionModel.ReflectionProperty.SetValue(System.Object, System.Object)' to access method 'MEFTest.MainPage.set_mypanel(MEFTest.Panel)' failed.
When I change it to public it works. Why does the scope change cause this error message?
I have gone through all of the videos and they have really helped me make sense of this whole MEF concept better. I have tried to follow some other discussions of this and I ended up almost lost.