我有这个 XAML:
<UserControl x:Class="M_Cubed.Controls.TagEditor"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:classes="clr-namespace:M_Cubed.Classes">
<UserControl.Resources>
<DataTemplate DataType="{x:Type classes:TagEditorPic}">
<ComboBox DataContext="{StaticResource PicTypes}"
ItemsSource="{Binding}"/>
</DataTemplate>
</UserControl.Resources>
</UserControl>
我有这个 C#:
namespace M_Cubed.Classes
{
public class TagEditorPic : INotifyPropertyChanged
{
public TagEditorPic() { }
}
}
我得到这个错误:
类型引用找不到名为“TagEditorPic”的公共类型。
有什么建议么?