WPF插件开发:使用FrameworkElementAdapters时VS报错的问题

  使用MAF开发插件时FrameworkElementAdapters是个坑,查帮助手册发现这个类位于System.AddIn.Pipeline命名空间中,但是添加System.AddIn的引用后发现VS还是报错:"The name 'FrameworkElementAdapters' does not exist in the current ×××(你当前程序集的名称)".

  搞了半天才发现,还要添加System.Windows.Presentation的引用才能解决这个错误,真是让人无语.

posted @ 2017-08-09 16:22  梦醒江南·Infinite  阅读(295)  评论(0)    收藏  举报