我真心接受XamlParseException,我对此没有想法。
该电文是“Cannot 个不明成员{clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro}View.Model ......
在这种看法模式中,我有一个可以观察的Collection,即我开始像这样的建筑商:
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; }
}
这里的观点是:
<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>
当我叫WowManager时。 在实体ListScreenViewModel一案中,我获得例外。
如果Ido not在名单上添加一个实体(使用var list=新的清单和编号;意向和;
相反,我没有例外。
Does anybody have any ideas?
<>Update:
我试图将可观察的Collection改变为类型扼杀,并添加了单一体,我没有例外。 我怀疑是卡利伯。 微额贷款在某种程度上试图代表实体加入名单Box。 这也许是什么?
<><>上>
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.