开发者

How do I present Prism module views?

I'm writing a prism application, I've just created my 1st module, fired it all up and amazingly - it works.

The application is going to grow soon(TM), and I'll be facing the need to host those modules in separate GUI elements.

What type of GUI elements would you recommend to host the modules? Is it possible to data-bind a module to some control like a tab-开发者_如何学运维control? How is it done? Is there some kind of a dock manager (similiar to AvalonDock) for Silverlight?


Have you looked at StockTrader sample project provided with PRISM? It has in Shell.xaml AnimatedTabControl (inherited from TabControl) to which are bound modules: WatchModule (look at WatchListController.cs file) and PositionModule (look at PositionModule.cs file).

[Edit]

Take a look also at Prism Explorer sample project, which is using TabControl in Shell.


There IS dock manager, check silverlight toolkit ( it is installed with sl4 or you can take it here ) Also there is an example of binding controls to tab control tabs with MEF on channel 9

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜