Ejemplo n.º 1
0
        public static LanguageDocument FromDictionary(ResourceDictionary dictionary)
        {
            var document = new LanguageDocument();

            foreach (var key in dictionary.Keys)
            {
                document.LanguageEntries.First(x => x.Key == key.ToString()).Value = dictionary[key].ToString();
            }

            return(document);
        }
Ejemplo n.º 2
0
        public static LanguageDocument FromDictionary(ResourceDictionary dictionary)
        {
            var document = new LanguageDocument();

            foreach (var key in dictionary.Keys)
            {
                document.LanguageEntries.First(x => x.Key == key.ToString()).Value = dictionary[key].ToString();
            }

            return document;
        }