如何呈现 Prism 模块视图?

发布于 2024-08-28 01:03:01 字数 214 浏览 4 评论 0原文

我正在编写一个棱镜应用程序,我刚刚创建了我的第一个模块,将其全部启动,令人惊讶的是 - 它有效。

该应用程序很快就会增长,我将面临在单独的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

别想她 2024-09-04 01:03:01

您看过 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.

晨光如昨 2024-09-04 01:03:01

有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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文