PRISM 6 Regions in WPF using DataTemplate/CustomControl

守給你的承諾、 提交于 2019-12-13 05:21:37

问题


What is the recommended way for defining regions in DataTemplates using PRISM 6? If i define a region in a DataTemplate it will not be registered in the RegionManager... I have same issue using a custom control with 3 ContentControls on it each defining a region. Can't find them in the regions collection in the RegionManager.


回答1:


This is a known issue in Prism. Here is your fix:

http://southworks.com/blog/2011/11/10/regions-inside-datatemplates-in-prism-v4-using-a-region-behavior/



来源:https://stackoverflow.com/questions/33372055/prism-6-regions-in-wpf-using-datatemplate-customcontrol

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