问题
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