引:https://www.cnblogs.com/shihuixian/p/7740630.html
打開項目工程文件在PropertyGroup標籤最後加上下面3行:
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
添加完資源字典之後,如果x:type報錯,那麼添加引用System.Xaml程序集即可。
記錄一下,以便以後用得到
讀書使人心明眼亮