WPF UserControl cannot find XAML resource in referencing project

后端 未结 5 482
盖世英雄少女心
盖世英雄少女心 2020-12-06 04:55

In my WPF project i keep a user control in a separate library project. The user control accesses resources in a separate XAML file, like this:



        
5条回答
  •  一个人的身影
    2020-12-06 05:27

    Found it.

    Turns out there is a better way to specify the path, Pack URIs. I changed the XAML to the following:

    
        
            
                
            
            
        
    
    

    and that fixed it.

提交回复
热议问题