pack://application:,,,/ResourceFile.xaml Never Works

前端 未结 2 2040
甜味超标
甜味超标 2021-02-09 08:19

I have never been able to get this format of reference a Resource Dictionary to work. What am I missing.

Scenario:

Creating and assembly with some usercontrols i

2条回答
  •  隐瞒了意图╮
    2021-02-09 08:48

    try:

    pack://application:,,,/YOURNAMESPACEHERE/ColorThemes.xaml
    

    E.g.

    pack://application:,,,/Themes/ColorThemes.xaml
    

提交回复
热议问题