gpt4 book ai didi

c# - 无法访问 System.Windows 命名空间

转载 作者:太空宇宙 更新时间:2023-11-03 20:26:23 25 4
gpt4 key购买 nike

我有一个要扩展 WPF 窗口类的类。我找不到要扩展的类(class)。我认为它在 System.Windows 命名空间中,但我无权访问它。谁能帮忙。

如果您需要更多信息,请告诉我。

我正在将项目构建为类库。

当前的引用文献是:

Microsoft.CSharp
System
System.Core
System.Data
System.Data.DataSetExtentions
System.Xml
System.Xml.Linq

我正在尝试扩展 System.Windows.Window 类,但是当我键入 System. 时,没有 .Windows

最佳答案

您需要添加对 PresentationFramework 的引用(在 PresentationFramework.dll 中)

关于c# - 无法访问 System.Windows 命名空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10428663/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com