Esempio n. 1
0
        private bool ContainsCycle(ResourceDictionary origin)
        {
            for (int i = 0; i < this.MergedDictionaries.Count; i++)
            {
                ResourceDictionary mergedDictionary = this.MergedDictionaries[i];
                if (mergedDictionary == origin || mergedDictionary.ContainsCycle(origin))
                {
                    return(true);
                }
            }

            return(false);
        }