// (c) Copyright Microsoft Corporation. // This source is subject to the Microsoft Public License (Ms-PL). // Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details. // All other rights reserved. using System.Collections.Generic; namespace System.Windows.Controls.DataVisualization { /// /// Represents a service that dispenses ResourceDictionaries. /// /// Preview public interface IResourceDictionaryDispenser { /// /// Returns a rotating enumerator of ResourceDictionaries coordinated with /// the style dispenser object to ensure that no two enumerators are /// currently on the same one if possible. If the dispenser is reset or /// its collection is changed then the enumerators will also be reset. /// /// A predicate that returns a value /// indicating whether to return a ResourceDictionary. /// An enumerator of ResourceDictionaries. IEnumerator GetResourceDictionariesWhere(Func predicate); /// /// Event that is invoked when the StyleDispenser's ResourceDictionaries have changed. /// event EventHandler ResourceDictionariesChanged; } }