Exemple #1
0
        private void ResolveStyle(Style s)
        {
            if (s == null)
                return;

            if (s.Resolved)
                return;

            Style sBasedOn = GetBaseStyle(s);

            if (sBasedOn == s)
                return; // do not recurse infinitely

            ResolveStyle(sBasedOn);
            s.ResolveInheritedProperties(sBasedOn);
        }