The component does not have a resource identified by the uri

后端 未结 20 1021
悲哀的现实
悲哀的现实 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条回答
  •  无人及你
    2020-12-01 07:51

    @Willem, this seems perfectly OK to me. In fact I tried this and it worked in my case. I used ListBox instead of DataGrid (but that shouldnt matter).

    All my namespaces were in one assembly. So I used a common parent namespace for all e.g.

    MyWpfApplication.Controls MyWpfApplciation.GridView MyWpfApplciation.ViewBase

    Coz all these Controls, GridView, ViewBase are clashing with existing System or System.Windows.Controls based namespace and class declarations. So I made sure I referred correct ones MyWpfApplication.* in my project.

提交回复
热议问题