The component does not have a resource identified by the uri

后端 未结 20 1022
悲哀的现实
悲哀的现实 2020-12-01 07:33

I want to create a Generic DataGrid to use on all my Views/UserControls.

This is my structure:

Class Library called \"Core\":

20条回答
  •  旧时难觅i
    2020-12-01 07:47

    • Delete obj folder
    • Delete bin folder
    • Rebuild solution

    Worked for me!

    Also if you are loading assemblies using Assembly.LoadFile, check out AppDomain.CurrentDomain.GetAssemblies() for duplicate assemblies in the current AppDomain. Because in auto-generated code of WPF UserControl, the component will be loaded using its relative URI. And since there are duplicate assemblies in the current AppDomain, application doesn't know which one to use.

提交回复
热议问题