/// <summary> /// Initializes a new instance of the LinkStyle class /// </summary> /// <param name="xmlStyle">Xml representation of the link style</param> /// <param name="assemblyManager">Manager for assembly/name resolution</param> public LinkStyle(XElement xmlStyle, ExternalAssemblyManager assemblyManager) { this.SetDefaultFieldValues(); // sets the constructor of the LinkView XElement constructorXml = xmlStyle.Element(xml.SettingsXmlContent.Namespace + xml.SettingsXmlContent.ClassNameElementOfLinkStyleElementName); if (constructorXml != null) { ConstructorInfo constructor = assemblyManager.SearchLinkViewConstructor(constructorXml.Value); if (constructor != null) { this.viewConstructor = constructor; } } // set the drawing information to the style XElement drawingInformationElement = xmlStyle.Element(xml.SettingsXmlContent.Namespace + xml.SettingsXmlContent.DrawingInformationElementOfLinkStyleElementName); if (drawingInformationElement != null) { this.drawingInformation = drawingInformationElement; } }