Prism. Work with regions



  • Hello. Studying wpf found out there was prism. I'm trying to figure out how to work with the regions. When I added a single module to the region, I understood. How can several modules be added to one region? Exactly. введите сюда описание изображения

    Module 1.2.3.4 is the headline of the module(s with an inscription) and is located in Region 1. Region 2 displays the main content of the module.



  • For starters, you have a problem with terminology: Not the modules are loaded into the regions, but the view. The module contains a view.

    If you want to add some view to one region, you can use the IRegionManager method.RegisterViewWithRegion(...) to register the vice in the region.

    In order to distort data from the module in the first region, you need to register a view for him. Same for the second region.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2