如何激活属于同一区域的多个视图?

发布于 2024-09-29 05:20:15 字数 221 浏览 0 评论 0原文

我是 Silverlight 和 Prism 的新手。我正在开发一个仪表板应用程序。 这是我的问题。 我有 2 个区域:1. 登录 2. 主容器。

我的登录区域有一个视图,我的主容器有 2 个视图。

成功登录后,我需要停用登录区域或视图(以简单者为准),然后我需要激活主容器区域及其中的视图。 有没有办法可以同时激活“主容器”区域的视图? 任何帮助都会有用的。

提前致谢 萨米特

I'm new to Silverlight and Prism. I'm developing a dashboard application.
Here's my question.
I've 2 regions: 1. Login 2. Maincontainer.

My Login region has one view and my maincontainer has 2 views.

After a successful login, i need to deactivate the Login region or view (whichever is simple) and then i need to activate the Maincontainer region and both the view within it.
Is there a way i can activate both the view of my "Maincontainer" region at the same time?
Any help would be useful.

Thanks in advance
Samit

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

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

发布评论

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

评论(1

遗弃M 2024-10-06 05:20:15

激活区域中的视图意味着显示它。如果您想要一个区域可以同时显示多个视图,则必须使用 AllActiveRegion。要使用此类区域,您必须使用 ItemsControl(或从它继承的任何其他控件)作为区域宿主。

您可以找到更多信息 此处

我希望这有帮助。

To activate a view in a region means to display it. If you want a region which can display more than one view at the same time, you must use an AllActiveRegion. To use regions of this kind you must use as a region host an ItemsControl (or any other that inherits from it).

You can find some more info here.

I hope this helps.

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