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

  • Home
  • SEARCH
  • 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 4087006
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:48:02+00:00 2026-05-20T18:48:02+00:00

I have a main Silverilght project and other modules and I’m using Prism to

  • 0

I have a main Silverilght project and other modules and I’m using Prism to glue them together along with Unity for Dependency Injection.

I have one of my modules that depends on an IRegionManager which, naturally, gets injected to it by Unity.

The issue I’m running to is that, the Regions property of the RegionManager that I get doesn’t contain any regions even though I have declared two of them in my Shell as follows:

regions:RegionManager.RegionName="MainRegion"

I can’t figure out the reason of this behavior. I’ve tried registering a RegionManager as a singleton using

Container.RegisterInstance<IRegionManager>(new RegionManager());

as well as leaving unity handle this. However, I got the same results 🙁

what I’m trying to achieve is to inject a view into a particular region and activate it, which can’t be done using

_regionManager.RegisterViewWithRegion("MainRegion", typeof(MyView));

that’s why I need to get hold of the “MainRegion” object itself and manipulate it.

I hope somebody has this figured out. I would be very thankful 🙂

Edit:
I should mention that the view discovery works just fine, I can RegisterViewWithRegion, but when I check the Regions property of the RegionManager, I find it empty!

  • 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-20T18:48:03+00:00Added an answer on May 20, 2026 at 6:48 pm

    while thinking about this problem and the context in which it happened, it striked me that, like most bugs in software, the problem wasn’t where I was looking!

    My setup was as follows: I started out with the Silverlight Business Application project template. this gave me a MainPage which I used as my Shell, and a couple of views(Home and About). Now, instead of having the regions sit on my Shell, I put them in the Home view, keeping the MainPage as kind of a master page.

    My take on this is that Prism sets a RegionManager for the Shell, and passes it around to whoever needs it (using a Dependency Injection Container). This way, when I asked for an IRegionManager in my module, I got the one for my Shell which doesn’t really contain any region (hence the empty Regions property).

    To solve this, all I had to do was put my regions in their rightfull place: the Shell, and all is working well (for) now.

    Update:
    Seems like my “take on this” is actually correct :), this is an excerpt from the Prism Documentation: (under Scoped Regions)

    Views defining regions with attached properties automatically inherit their parent’s RegionManager. Usually, this is the global RegionManager that is registered in the shell window

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

Sidebar

Related Questions

I have a legacy desktop accounting application developed using Delphi 5 & Paradox, which
I have Main class and it contains function isSyncAllowed . I start another service.
I had a java project and after lots of research I managed to convert
http://www.zignals.com/main/ The above website is a market place for stock brokers strategies, would anybody
I have a silverlight control that has a Frame on it. I want to
as already the title of my question says I have the problem that the
I am making a Silverlight app and what I considered something straight-forward really isn't.
I need to be able to send an email from a silverlight client-side application.
I'm building SaaS application where back end will be SQL Server and WCF Services.

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.