There is a certain window (WPF) with RibbonBar (syncfusion), as well there is a ContentControl in the window to display Prism Modules using Unity. At the start of the program, the module appears to itself quite well, but I’m not going to know how, when you click a button in the RibbonBar, remove one module from the view and show the other instead. Thank!
PS: I think the way should be through Binding
XAML:

<ContentControl prism:RegionManager.RegionName="{Binding RegionName}"/> 

C #:

 public string RegionName { get { return regionName; } set { regionName = value; OnPropertyChanged("RegionName"); } } 

With this method, the RegionName changes C #:

 public void WorldsButtonEventHandler() { RegionName = "SomeRegion"; } 

OnPropertyChanged works but the module does not appear.

    1 answer 1

    Perhaps this is done so - two properties are created.

    1. A collection of possible view models
    2. Selected Model ( UserControl )

    Binding on the selected model ( <ContentControl Content="{Binding 2.свойство}"/> .

    By pressing the button (or something else), the selected model is changed.