Cannot find Region in RegionManager (using PRISM)

后端 未结 1 1624
孤城傲影
孤城傲影 2021-01-19 10:20

I\'m writing an application in Prism. I have a user control and contains two controls. These both have Regions assigned to them. The user

相关标签:
1条回答
  • 2021-01-19 10:59

    Sorted now. I needed to register the region manager in the constructor of my presenter class.
    That way the regions in my new window could find my global region manager.

    RegionManager.SetRegionManager(view as DependencyObject, regionManager);

    0 讨论(0)
提交回复
热议问题