Sunday, 5 October 2008

Resource inheritance

If dictionaries being merged have a duplicate key, the last one wins (unlike the case of having duplicate keys in a single dictionary).  Thus inheritance can be handled by the order in which the MergeDictionaries are loaded in the ResourceDictionary section Start by loading the BASE, then the next down etc.. and itll override every time it meets a duplicate.

For reference its on page 250ish in Martin's Unleashed book

No comments: