MEF+目录目录+按需
我在 ModuleB 中有一个代码 Initialize():
this.regionManager.AddToRegion("TabRegion", new Views.Container());
this.regionManager.AddToRegion("TabRegion", new Views.Container());
并单击外壳上的事件:
modulemanager.LoadModule("ModuleB");
结果,我在 shell tabcontrol 中看到了 2 个选项卡
对我来说,问题是再次打电话:
this.regionManager.AddToRegion("TabRegion", new Views.Container());
怎么做?非常感谢
PS我试图在网上找到解决方案,但我想我的问题不合适。