SilverlightProgramIt is inevitable that resourcedictionary will be used. As the project grows, resourcedictionary will become larger and larger. Naturally, resourcedictionary will be grouped into mergeddictionaries. Pay attention to the following issues when using resourcedictionary and mergeddictionaries.
- 1. Each resourcedictionary under mergeddictionaries must be independent, and multiple resourcedictionary cannot be referenced from each other;
- 2. Although the X: Name attribute can be added for each resourcedictionary under mergeddictionaries, the index can only be performed in sequence, but cannot be performed by name during runtime;
- 3. resourcedictionary cannot enumerate by key directly. If you must perform enumeration, you can only copy all keys to an array and then enumerate the array;
- 4. Keys defined in resourcedictionary are obtained after they are obtained. Therefore, the obtained order is the opposite of the defined order.