问题描述
我在程序名称空间之外有一个usercontrol,在XAML设计编辑器中,该usercontrols可以工作,但是编译器却看到了问题:
<Window x:Class="SNMP_Printer_Monitor.Windows.SettingsWindow"
xmlns:controls="clr-namespace:HDTools.Michiel.UserControls"
>
// Further down the line in a grid:
<controls:UCMailList x:Name="MailWarningList" Margin="610,180,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="246" Height="259"/>
用户控件在名为UCMailList的HDTools.Michiel.UserControls中进行。该窗口位于SNMP_Printer_Monitor.Windows.SettingsWindow;
错误得到:
Error CS0234 The type or namespace name 'UserControls' does not exist in the namespace 'SNMP_Printer_Monitor.HDTools.Michiel' (are you missing an assembly reference?) SNMP Printer Monitor C:\Users\info\source\repos\Michiel\SNMP Printer Monitor\SNMP Printer Monitor\Windows\SettingsWindow.xaml 34 Active
我该怎么做才能使这项工作成功?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)