简体   繁体   English

我可以使用Prism从主机向模块中注入区域吗?

[英]Can i inject a region into a module from a host using Prism?

I have a host thats loading a module containing 2 regions.Now in few scenarios which are available at the host end, i need to add a new region between the two in the module and load that module in the host. 我有一个主机,它正在加载包含2个区域的模块。现在在主机端可用的几种情况下,我需要在模块中的两个区域之间添加一个新区域并将该模块加载到主机中。

Pointers appreciated. 指针表示赞赏。

Hi i did something similiar like you. 嗨,我做了类似你的事情。 What i did was that i added all 3 regions that i needed then i used a region behaviour to collapse or show the region. 我所做的是,我添加了我需要的所有3个区域,然后使用区域行为来折叠或显示该区域。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM