Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6749215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:39:48+00:00 2026-05-26T12:39:48+00:00

I am unsure how to structure a large program using PRISM Modules. I have

  • 0

I am unsure how to structure a large program using PRISM Modules.

I have created the following layers:

Repository
BusinessLayer -> IUnityContainer registering services
UILayer -> MVVM implemented

If I have 3 modules, and I have an action in one of them, how do I trigger the view of another module to load?

I am currently using the EventAggregator but this requires the viewmodel to be somehow loaded already so it can subsribe to the event.

Ideally, I think, I would like to do something like the following:

IOrderService service = UnityContainer.Resolve();
service.PlaceOrder();

The order service is then responsable for loading the relevant UI features and registering it with the RegionManager.

Is that correct or have I got this completely wrong?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:39:49+00:00Added an answer on May 26, 2026 at 12:39 pm

    I actually like both of your approaches, but which one to use really depends on your requirements. If you want to explicitly have one module tell another module what to do, then service locator is the way to go. However, that approach has the tendency to bring some level of tight coupling across your modules.

    If tighter coupling is not what you want (for example, what happens when you add a fourth module that needs to handle the action?), then the event aggregator can get you the looser coupling. This approach does require a little more rigor and up-front work to manage regions, etc, as it’s easy to end up with a somewhat unmanageable set of events that lead to debugging difficulties (I’ve got that problem now in a project).

    Kind of a nebulous answer, but I hope it helps 🙂

    Nate

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following HTML structure <div id=test-1-yay></div> ... bunch of code ... <div
I have a three level database with the following structure (simplified to only show
So i have the following structure in my js file: var scrollingElements = {
I'm wondering what Data Structure people would recommend to do the following. I have
I have a CSV document that is of the following structure Headers Path,Publish,Hashlist,Package Content
I have a large list of instructions that I need executed sequentially but slowly.
I need a collection data-structure that can do the following: Be sorted Allow me
I have avoided working with fetchxml as I have been unsure the best way
I have lua embedded in my game engine and a directory structure of lua
I have a json structure that I'm decoding that looks like this: person =>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.