我只想看到一个拉贝尔。
The viewmodel is injected correctly in the view because the text of the label is bound to a viewmodel property. Now, if I try to define a DataGrid in the xaml, I ve got a XamlParseException:
{System.Windows.Markup.XamlParseException: Type DataGrid not found. [Line: 16 Position: 45] su System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) su Common.Views.FunctionalityView.InitializeComponent() su Common.Views.FunctionalityView..ctor(IFunctionalityViewModel viewModel)}
BUT, 如果我界定了<代码>DataGrid myDg = 新的数据Grid(,在InitializeComponent();
之前即行。
我检查了所有参考资料,仍然可以发现问题。