Hi marlon. i have a viewmodel first approach and i use your [ExportViewModel("M1", true)] for designtime issues. so my exports looks like this:
public class MusterSelectorVM : ViewModelBase, ITitle, IViewLoadedAction
private Lazy<IMuster> last;
private IEnumerable<Lazy<IMuster, IDictionary<string, object>>> musterfac;
all works fine, but :) the musterfac has many NonShared exports. in my app i open and process one and then i'd like to dispose/release it.
if i try :
if(this.last != null && this.last.IsValueCreated)
its just works when your [ExportViewModel("M1", true)] is commented out, but then no more design data :) do you have any suggestions for me?