开发者

Caliburn Application.Resources doesn't work, why ? how to make it work?

why when trying to add some resource dictionaries to my CaliburnApplication.Resources tag, it does not work, and when do it in code behind of my app开发者_运维技巧.xaml it works?


So you're using Caliburn? I would update to their latest version, as the CaliburnApplication class indicates you are on an older one. Svn checkout their latest and build from source.

You can also take a look at this caliburn discussion. It could be related to your problem.


Why not? My advice is to crate ResourceDictionaries for all your styles etc, one dictionary for each style (if there are not too many), and then merge them all i App.xaml by

  <Application.Resource>
      <ResourceDictionary><ResourceDictionary.MergeDictionaries>
          <ResourceDictionary Source="your path to source resourcedictionary"/>
          <ResourceDictionary Source="your path to nextsource resourcedictionary"/>
          ....

This enables more easy management of all your resources, styles etc. Easier to read, understand and better maintanance over time!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜