Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I believe the PRISM view philosophy is to load all the views and switch them in and out like a stack of cards. In your case, I can see you are using an attached behavior to load all of your views for each region. I <strong>suspect</strong> that all of your views are being loaded and added to the appropriate region, but that the last view is over the others (having been added last to the region). In WPF, the last control in the view hierarchy is higher in the zorder (because it is the last to be painted). Each of the previous controls is likely underneath.</p> <p>Instead of your current approach, I suggest you create a service class called NavigationService, that will handle loading a view set from a module on demand, and unloading any previous view set. You can design it to be a state manager, and it can coordinate different view arrangements with PRISM, even if you only want certain views loaded (say a sub-set of a module's views), instead of loading all of the views all the time. In your Bootloader, register each module with the NavigationService, and perhaps have each module include a strategy class for each view combination you need, supplying appropriate behavior. This way you keep the coordination logic close to the views it uses. In your Shell, call the NavigationService (which will be injected into each of your view models to facilitate changing screens) to set the initial view.</p> <p>Remember, this is just an idea to accomplish what you need, but I would get away from the basic PRISM functionality in WPF. It is limiting, imho, and unnecessary in complexity. You can still use PRISM's regions without using its navigation facility. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload