public DependencyResource(XElement xmlElement, string filepath) { // Load basic resources. path = filepath; name = (string)xmlElement.Attribute("name"); location = (string)xmlElement.Attribute("location"); }