VS2015建立類庫項目後添加不了WPF資源字典,窗口,用戶控件處理辦法

打開項目工程文件在PropertyGroup標籤最後加上下面3行:ui

<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
 <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>資源

添加完資源字典以後,若是x:type報錯,那麼添加引用System.Xaml程序集便可。引用

記錄一下,以便之後用獲得程序

相關文章
相關標籤/搜索