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 it’ll override every time it meets a duplicate.
For reference – it’s on page 250ish in Martin's Unleashed book
No comments:
Post a Comment