Prism 和嵌套 UserControl

发布于 2024-07-08 22:40:46 字数 256 浏览 1 评论 0原文

我已经使用 Prism 两天了,并已在新 Shell 上成功添加并使用了现有的 UserControls。 这些用户控件仅包含纯 WPF 控件(按钮、列表等)。

我现在需要引入由其他 UserControl 组成的现有 UserControl。

如果我的理解是正确的,我相信我需要重新开发这些控件,以与 shell 相同的方式使用区域,并在适当的控制器/演示器上定义 Run() 方法以注入(子)UserControl。

它是否正确?

I have been using Prism for two days and have successfully added and used existing UserControls on the new Shell. These UserControls contained only pure WPF Controls (buttons, lists etc).

I now need to introduce existing UserControls that consists of other UserControls.

If my understanding is correct, I believe I need to redevelop these controls to use regions in the same manner as the shell, and define a Run() method on an appropriate controller/presenter to have the (sub)UserControl injected.

Is this Correct?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文