【C# 小窍门】WeakEventManager 没法识别!ErrorCS0246The type or namespace name 'WeakEventManager' could not be

WeakEventManager学习

想用一下这个,在学习C# 事件的时候,结果添加了Using System.Windows, WeakEventManager却一直是红色的,没法识别,报这个错哦~spa

好不容易想用个高大上的弱事件,还找不到命名空间!解决啦!3d

stackoverflow上找到的答案哦~ 并不是原创~ 马克给墙内的小白看~blog

Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'WeakEventManager' could not be found (are you missing a using directive or an assembly reference?) CarSale事件

用的是VS 2015ip

如何解决?it

1. 点add reference~io

 

 2. Add reference : WindowBase命名空间

3. 大功告成啦~im

相关文章
相关标签/搜索