Prism: Share data between ViewModels loaded into a region?

做~自己de王妃 提交于 2019-12-05 01:47:53

Prism has the concept of "Region Context" that you might be able to use, depending on your scenario.

Check out the Prism Region documentation and look for the section entitled "Sharing Data Between Multiple Regions" (though this title is a little misleading...).

If you find this doesn't work for you, I would suggest writing a custom inheriting attached property that you can bind to from subviews and modify from the parent view.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!