Intellisense with a resource dictionary in a separate assembly

I have a solution in vs2015 with two builds. One is the WPF application, and the other is the WPF class library.

At the root of the project of my class library, I have one ResourceDictionary called Directory.xaml - it has several styles, several brushes and some lines, etc.

Using:

 <ResourceDictionary Source="pack://application:,,,/Resources;component/Directory.xaml"/> 

I can successfully use the resources, however I intend to use the compiled class library (dll) in future projects, the problem is that if I do not import the project and the link, instead of just referencing the DLL, I do not have any intellisense support.

Any ideas?

+5
source share

Source: https://habr.com/ru/post/1240540/


All Articles