private void OnLoadCompleted(object sender, LoadContentEventArgs args) { XElement data = args.Data; if (data != null) { foreach (var elem in data.Descendants(m_creditType)) { Credit credit = new Credit { Name = HtmlToXamlConverter.ConvertHtmlToXml(elem.Element("name").Value).Value, Id = elem.Element("id").Value, Link = elem.Element("link").Value, Bank = elem.Element("bank").Element("name").Value, Rates = InitializeRates(elem.Element("short")) }; this.CreditList.Items.Add(credit); } } }