http://blogs.msdn.com/msmossyblog/archive/2008/09/15/how-to-make-innerglows-with-expression-blend.aspx
Remember the BitmapEffects in WPF are very costly
Abt me :Now a mad rider on the WPF road
Remember the BitmapEffects in WPF are very costly
<?xml version="1.0" encoding="utf-8" ?>The Employee class is given below
<Employees>
<Employee ID="10">
<Name>Joy</Name>
<Designation>Sr Software Engg</Designation>
</Employee>
<Employee ID="12">
<Name>ABC</Name>
<Designation>Software Engg</Designation>
</Employee>
<Employee ID="1">
<Name>George</Name>
<Designation>Sr Software Engg</Designation>
</Employee>
<Employee ID="2">
<Name>IJK</Name>
<Designation>Testing Engg</Designation>
</Employee>
<Employee ID="3">
<Name>XYZ</Name>
<Designation>Team Leader</Designation>
</Employee>
</Employees>
public class Employee
{
public string Name { get; set; }
public string Designation { get; set; }
}
The first step here is to load the xml into a XmlDocument.Then apply Linq.
Here goes the Linq Query.XmlDocument xmldocument = new XmlDocument();xmldocument.Load("../../employees.xml");List<Employee> emps = (from iin xmldocument.ChildNodes[1].ChildNodes.Cast<XmlNode>()select new Employee{Name = i.ChildNodes[0].InnerText ,Designation = i.ChildNodes[1].InnerText}).ToList();
Download sample from here