I have a wpf application using Caliburn.Micro. I have a view of MyView:
<UserControl x:Class="ReferenceMaintenanceWorkspace.MyView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" > <UserControl.Resources> </UserControl.Resources> <TabControl x:Name="Items" > </TabControl>
I also have a MyViewModel:
using System.ComponentModel.Composition; namespace ReferenceMaintenanceWorkspace { [Export(typeof(MyViewModel))] public class MyViewModel { public MyViewModel() { base.DisplayName = "Reference Maintenance"; }
For some reason, I get the following message in a tab control:
Unable to find view for ReferenceMaintenanceWorkspace.MyViewModel.
Could you explain why this could happen? Thanks.
David shochet
source share