I'm back with another question related to my posts above. Is there any way to make this situation "Blendable"? I'm calling PartInitializer.SatisfyImports(Me)
inside of my stub view'sconstructor and then setting the content of the stub view to the actual View, which contains the XAML markup. This works at runtime, but I'm having issues when I run the control in expression blend. Maybe this isn't possible,
but I want to run it by the MEF gurus before I give up on it. My first guess is that somehow the Partinitializer running in Expression Blend isn't looking at my Extensions assembly when PartInitializer.SatisfyImports is called, because it isn't actually
running inside a Silverlight Application.
Assembly 1 ViewStubs
Assembly 2 ViewExtensions (actual view assembly)
Assembly 3 ViewContracts (interfaces used to mark the views as exports)
I'm opening Control A, which has two child controls B, and C. Control A is located in Assembly 2, and it has two stub views on it that are defined in Assembly 1. When those stub views are filled with content the content comes from Assembly 2.
Is a way to do this in Blend with SatisfyImports? Is there another way I could use at design time that might work?
Looking forward to your reponse. I can try to re-phrase if this isn't making sense.