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 8290447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:49:01+00:00 2026-06-08T12:49:01+00:00

I thought about trying to learn caliburn again. First few lessons were easy but

  • 0

I thought about trying to learn caliburn again.
First few lessons were easy but things get complicated as I progressed and I cannot figure it out alone.

I designed an app for the purpose to cover most of the basics which have a ShellViewModel of type Conductor<IScreen> and a few ChildViews which implements IScreen.I’m using an IOC container to compose ViewModels and related resources in the App.

One of the child is like a Navigation Desk from which user can access different child views and those child views support navigation to one or two other views also.

When I looked for samples introducing the concept of Screen and conductors, all those samples directly created and activated the viewmodels by calling ActivateItem(new ChildViewModel()), may be for the sake of simplicity, but I’m having trouble understanding how these viewmodel creation can be delegated to IOC container without having a dependency on it.

For one or two screens atleast I can inject via constructor, but what about when there are a lot of views to which, user can navigate from any given view and each of them have additional dependencies of their own?

Forgiving the dumbness of a beginner, Can anyone point me in the right direction?

  • 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-06-08T12:49:04+00:00Added an answer on June 8, 2026 at 12:49 pm

    You want to use view model factories, which have a dependency on your IoC container. For example, your ShellViewModel could take an IViewModelFactory which has methods for CreateNavigatorViewModel etc which returns an NavigatorViewModel (or INavigatorViewModel), and this implementation uses the IoC container to resolve I/NavigatorViewModel.

    Some IoC containers support automatic creation of these factories, for example Castle.Windsor has a Typed Factory Facility, and Ninject has an extension which creates factory types, you just define the factory interface.

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

Sidebar

Related Questions

i'm trying to get computer's state in my LAN... thought about using QTcpSocket but
I know this might sound easy. I thought about using the first dot(.) which
I am (trying) to learn about generics and I thought I understood them. I
I have been trying to learn more about lambda expressions lately, and thought of
I have never thought about until recently, but I'm not sure why we call
Before answering, it is not as easy question as you might have thought about
I'm trying to learn more about database transactions, I found the ACID rule of
I'm in the process of trying to 'learn more of' and 'learn lessons from'
I am trying to learn new stuff about jquery, html, asp .net mvc. I
I'm an amateur, admittedly so, but I'm having fun trying to learn a little

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.