如何呈现 Prism 模块视图?
我正在编写一个棱镜应用程序,我刚刚创建了我的第一个模块,将其全部启动,令人惊讶的是 - 它有效。
该应用程序很快就会增长,我将面临在单独的 GUI 元素中托管这些模块的需要。
您建议使用什么类型的 GUI 元素来托管模块? 是否可以将模块数据绑定到某些控件(例如选项卡控件)?它是如何完成的? 是否有某种适用于 Silverlight 的坞站管理器(类似于 AvalonDock)?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您看过 PRISM 提供的 StockTrader 示例项目吗?它在 Shell.xaml AnimatedTabControl(继承自 TabControl)中具有绑定模块:WatchModule(查看 WatchListController.cs 文件)和 PositionModule(查看 PositionModule.cs 文件)。
[编辑]
另请查看 Prism Explorer 示例项目,该项目在壳。
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.
有dock管理器,检查silverlight工具包(它是与sl4一起安装的,或者你可以在这里获取它)
还有一个在通道 9 上使用 MEF 将控件绑定到选项卡控件选项卡的示例
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