Hello,
It should be used in the Value property of the query result, instead regarding the query string value is converted to an integer
InitializeComponent();
XDocument loadedData = XDocument.Load("XML.xml");
var data = from query in loadedData.Descendants("Chart")
select new Person
{
FirstName = query.Element("title").Value,
LastName = query.Element("Graph").Value,
Age = Int.Parse(query.Element("StrokeThickness").Value)
};
Nom.Text = data;
Bye.