Add ResourceDictionary to class library

后端 未结 7 1775
旧巷少年郎
旧巷少年郎 2020-12-14 01:53

I created a class library which is contained of WPF Windows and some user controls inherited from my c# classes that helps me to customize certain wpf controls.

Now

7条回答
  •  时光说笑
    2020-12-14 02:35

    Since i can't yet comment but i've used this answer twice now:

    To add to nmariot's answer:


    Tip 1

    to reach the .csproj file from visual studio

    right click project -> click 'unload project'

    right click project [in unloaded state]-> click 'edit 'filename.csproj''

    Tip 2

    to avoid error warnings once resource dictionary has been added:

    add reference to System.Xaml

提交回复
热议问题