Cannot find resource dictionary in WPF application

后端 未结 4 1684
长发绾君心
长发绾君心 2021-01-18 03:49

I\'m in the process of building a WPF application and ran into an error when trying to reference a resource dictionary. Inside my WPF application project I have a folder cal

4条回答
  •  渐次进展
    2021-01-18 04:16

    I had the same issue, but setting Build Action = Page did not solve for me. Turned out I needed to use the Pack URI Format. So,

    
    

    EDIT

    Turns out the above will eliminate build error but still results in runtime error. I needed to include full assembly specification for complete resolution (even though all files are in same assembly):

    
    

提交回复
热议问题