繁体   English   中英

在类库错误中填充Combobox:'控件'在命名空间'System.Windows'中不存在于WPF项目中

[英]populating a Combobox in class library error :'Controls' does not exist in the namespace 'System.Windows' works in WPF project

在类库中填充Combobox

我有一个带控件的WPF项目,

我想在我的类库中访问WPF控件并且我得到错误

The type or namespace name 'Controls' does not exist in the namespace 
'System.Windows' 

(are you missing an assembly reference?)

从WPF项目访问函数时不会发生问题当我尝试从类库中执行某些操作时它只会成为一个问题

如消息所示,您可能缺少程序集引用。 确保您的类库包含对.NET PresentationFramework程序集的引用,您应该没问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM