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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:47:35+00:00 2026-05-22T14:47:35+00:00

I am getting a really weird XamlParseException, and I have no idea why. The

  • 0

I am getting a really weird XamlParseException, and I have no idea why.

The message is “Cannot set unknown member ‘{clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro}View.Model’.”

In the view model, I have an ObservableCollection that I’m initializing in the constructor like this:

internal class EntityListScreenViewModel : Screen
{
    public EntityListScreenViewModel()
    {
        var list = new List<Entity>() { new Entity() { Name = "Joe" } };
        this.Entities = new ObservableCollection<Entity>(list);
    }

    public ObservableCollection<Entity> Entities { get; set; }
}

Here’s the view:

<Window x:Class="WpfApp.EntityListScreenView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="350" Width="525">
    <Grid>
        <ListBox x:Name="Entities"/>
    </Grid>
</Window>

When I call WindowManager.ShowWindow() on an instance of EntityListScreenViewModel, I get the exception.

If I do not add an Entity to the list (using var list = new List<Entity>(); instead), I do not get the exception.

Does anybody have any ideas?

Update:

I tried changing the ObservableCollection to be of type string and added a single string, and I did not get the exception. My suspicion is that Caliburn.Micro is somehow looking for a view to represent the Entity in the ListBox. Could that perhaps be what’s going on?

Update 2:

I finally figured out what was really going on… the DefaultItemTemplate in the ConventionManager had some parsed Xaml that was looking for the “Caliburn.Micro” assembly, but I had put the code in with another assembly. Changed the Xaml and the problem went away.

  • 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-22T14:47:36+00:00Added an answer on May 22, 2026 at 2:47 pm

    My suspicion is that Caliburn.Micro is
    somehow looking for a view to
    represent the Entity in the ListBox

    Yes, this is what is going on. By default when you bind a list using a name convention, Caliburn Micro interprets this as you binding to a list of ViewModels; not a list of Entities. This allows you to bind to a list of ViewModels without the need to specify the specific view to use in the ItemTemplate of the ItemsControl and what you end up with is a list of views specific to that ViewModel.

    To ensure this doesn’t happen, you should be able to just bind manually to the ListBox. If Caliburn Micro sees an ItemsSource binding already, it will ignore the convention.

    <ListBox x:Name="Entities" ItemsSource="{Binding Entities}"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I'm getting nullpointerexception at rs.next() or rs.getString(1) it is really weird that sometimes
This is really getting to me now.I have a form that loads when the
I'm getting a really weird FileNotFoundException thrown the first time I try to use
I'm just starting a new project and I am getting some really weird stuff
I'm running django on Dreamhost right now with fastcgi, and I'm getting really weird
I'm developing a Silverlight 3 app and getting this really weird error when I
Im getting a really weird result using == in MATLAB_R2009b on OS X. Example
I'm getting a really weird error where after I leave the for scope I
I have a really weird problem with background worker. Code is too complicated so
I have a really weird WCF problem here... We're connecting to a crappy third-party

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.