silverlight - MEF: One region, multiple views to display at the same time -
i'm trying build modular application contains shell application , subsequent modules. i'd define navigation area modules display hyperlink button. i've called region 'navigationregion' in shell's view:
<itemscontrol name="navigationregion" prism:regionmanager.regionname="navigationregion" />
inside each module's initialize method, i'm calling navigation region's add method:
public void initialize() { regionmanager.regions["navigationregion"].add(new views.navigation()); }
the modules loaded in bootstrapper using aggregatecatalog.catalogs.add method:
this.aggregatecatalog.catalogs.add(new assemblycatalog(typeof(orders.ordermodule).assembly)); this.aggregatecatalog.catalogs.add(new assemblycatalog(typeof(people.peoplemodule).assembly));
the problem is, 1 of views shows , first assembly added catalog's view. how views added navigation region show up? or there other method should using show views @ same time?
the itemscontrol needs tell display multiple items:
<itemscontrol.itemspanel> <itemspaneltemplate> <toolkit:wrappanel /> </itemspaneltemplate> </itemscontrol.itemspanel>
Comments
Post a Comment