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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:19:36+00:00 2026-05-23T18:19:36+00:00

Is it possible in Caliburn Micro to inject a ViewModel object between the view

  • 0

Is it possible in Caliburn Micro to inject a ViewModel object between the view and the model when binding to a collection of model objects?

For example, if I had a IShellViewModel with the following property:

IEnumerable<Foo> Foos { get; set; }

and a ListBox in the ShellView.xaml

<ListBox x:Name="Foos"/>

Which would use FooView to render the listbox items. Can Caliburn inject a collection of IEnumerable for the View to bind to? Or do I have to create a parallel collection of IEnumerable next to the original model’s IEnumerable.

  • 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-23T18:19:36+00:00Added an answer on May 23, 2026 at 6:19 pm

    I’m not quite sure what you’re asking, when you say ‘which would use FooView to render the listbox items’, do you mean you have 1 view which renders ALL of the items, or a view per item?

    If it’s the latter, then Caliburn.Micro has a convention where if you have a collection of view models (e.g IEnumerable<FooViewModel>) bound to an ItemsControl, then it will search for a FooView for each of the items and automatically bind the located view to that item’s view model.

    If you’re asking if Caliburn.Micro can autogenerate ViewModel types from your model types, then no. How would it know what properties to expose? Normally a view model reshapes and enhances the functionality of a model, including presentation logic which would be specific to a particular UI technology.

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

Sidebar

Related Questions

I need to validate on exceptions when doing binding. Is this possible using Caliburn.Micro?
Using the IWindowManager of Caliburn.Micro , is it possible to create a borderless window
I use Caliburn micro for my WPF Project. Static menus are easy to bind
In Caliburn.Micro documentation the authors mention such possibility: documentation link IHandle inherits from a
Possible Duplicate: Can you write object oriented code in C? Hi, can someone point
In MEF it's possible to set the dependencies for an existing object using something
In Caliburn.Micro documentation the authors mention such possibility: documentation link IHandle inherits from a
I'm using Caliburn Micro MVVM. I want to make category selection usercontrol consisting of
I'm wanting to start a WPF application using caliburn.micro so I can use TDD
Hi i try use Nlog in with caliburn micro, I have use this tutorial

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.