views:

150

answers:

2

Heya,

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?

+1  A: 

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

vittore
Didn't know about the SL4's dock manager, cheers for that.
Maciek
+2  A: 

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.

Damian Antonowicz
I'm having trouble with the AnimatedTabControl. It appears it's not willing to display tabitems' headers properly in SL3. Anyone experienced this?
Maciek