public static StylesTree BuildFrom(IDictionary<string, StyleDefinition> styleDefinitions)
        {
            var stylesTree = new StylesTree();

            foreach (var definition in styleDefinitions)
            {
                stylesTree.AddNewStyle(definition.Value, definition.Key);
            }

            return stylesTree;
        }
Beispiel #2
0
        public static StylesTree BuildFrom(IDictionary <string, StyleDefinition> styleDefinitions)
        {
            var stylesTree = new StylesTree();

            foreach (var definition in styleDefinitions)
            {
                stylesTree.AddNewStyle(definition.Value, definition.Key);
            }

            return(stylesTree);
        }