/// <summary>
        /// Raises the EnumeratorResourceDictionaryDispensed event.
        /// </summary>
        /// <param name="source">The source of the event.</param>
        /// <param name="args">Information about the event.</param>
        private void OnEnumeratorResourceDictionaryDispensed(object source, ResourceDictionaryDispensedEventArgs args)
        {
            // Remove this item from the list of dispensed styles.
            _resourceDictionariesDispensed.Remove(args);

            // Add this item to the end of the list of dispensed styles.
            _resourceDictionariesDispensed.AddLast(args);

            foreach (ResourceDictionaryEnumerator enumerator in _resourceDictionaryEnumerators)
            {
                enumerator.ResourceDictionaryDispenserResourceDictionaryDispensed(source, args);
            }
        }
 /// <summary>
 /// This method is raised when an enumerator dispenses a ResourceDictionary.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">Information about the event.</param>
 internal void EnumeratorResourceDictionaryDispensed(object sender, ResourceDictionaryDispensedEventArgs e)
 {
     if (!_ignoreResourceDictionaryDispensedByEnumerator)
     {
         OnEnumeratorResourceDictionaryDispensed(this, e);
     }
 }