我正在嘗試使用System.Windows.Controls.TextChangedEventArgs
,但我無法導入System.Windows.Controls
。當我嘗試添加引用時,System.Windows.Controls
不是我可以選擇的程序集之一。無法導入System.Windows.Controls
有誰知道如何解決這個問題?
我正在嘗試使用System.Windows.Controls.TextChangedEventArgs
,但我無法導入System.Windows.Controls
。當我嘗試添加引用時,System.Windows.Controls
不是我可以選擇的程序集之一。無法導入System.Windows.Controls
有誰知道如何解決這個問題?
接受的答案告訴你的問題,但並沒有告訴你如何解決它。我只是爲未來的訪問者添加這個。 要解決此問題,您需要添加對PresentationFramework.dll
的引用。
轉到Solutions Explorer
(它在你的IDE的右側)>右鍵上References
單擊選擇Add Reference
,在打開的窗口中,查找Presentation Framework
,選中該框並點擊確定。就這樣。這是爲您的項目添加引用的方式。
我相信你在Winforms中工作? – Sandy 2013-02-12 15:08:25
你需要在你的機器上安裝dot net 4.5。 – 2013-02-12 15:16:59
@AzharKhorasany:錯;自從.Net 3.0以來,WPF和'PresentationFramework.dll'就已經存在。 – SLaks 2013-02-13 15:20:44