如何将DesignInstance与Caliburn.Micro一起使用

我正在使用Caliburn.Micro

我有这个WPF视图,在设计时,在诸如firstname等基本属性上成功使用样本数据但是不能找到属性和复杂类型集合的视图

               

这是SampleData

 public class SampleReviewerViewModel : ReviewerViewModel { public SampleReviewerViewModel() { Honorific = "Mr"; FirstName = "John"; LastName = "Smith"; ReviewerId = "125634"; Gender = "Male"; JobTitle = "REC Chair"; ReviewerTaskCount = "10"; ReviewerRequestedTaskCount = "20"; ReviewerDispatchedTaskCount = "33"; ReviewerRequestedReturnedCount = "50"; PostalAddress = new AddressViewModel(); CourierAddress = new AddressViewModel(); IsBusy = false; RepositoryItems = new ObservableCollection { new RepositoryItemViewModel() {Title = "Red" }, new RepositoryItemViewModel() {Title = "Orange" }, new RepositoryItemViewModel() {Title = "Yellow" }, new RepositoryItemViewModel() {Title = "Green" }, new RepositoryItemViewModel() {Title = "Blue" }, new RepositoryItemViewModel() {Title = "Indigo" }, new RepositoryItemViewModel() {Title = "Violet" } }; } } 

这是我的地址视图

               

它是样本数据

 public class SampleAddressViewModel : AddressViewModel { public SampleAddressViewModel() { Type = "Mail Address"; AddressLine1 = "350 Fifth Avenue"; AddressLine2 = ""; AddressLine3 = ""; City = "New York, NY "; PostCode = "10118"; Country = "United States of America"; } } 

你不需要cal:Bind.AtDesignTime="True"用户控件上的cal:Bind.AtDesignTime="True"