public XmlPageTemplateDefinition(System.Xml.XmlNode template) { Key = template.Attributes["key"].Value; Height = template.Attributes["height"].Value; Width = template.Attributes["width"].Value; Colortype = template.Attributes["colortype"].Value; if (template.Attributes["bleeding"] != null) { Bleeding = template.Attributes["bleeding"].Value; } XmlNode dynamicXmlContentNode = template.SelectSingleNode("dynamicContent"); XmlNode staticContentNode = template.SelectSingleNode("staticContent"); if (staticContentNode != null) { XmlStaticContent = new XmlContent(staticContentNode); } if (dynamicXmlContentNode != null) { XmlDynamicContent = new XmlContent(dynamicXmlContentNode); } XmlLayout = new XmlLayoutDefinition(template.SelectSingleNode("layout")); }
public void Initialize(XmlNode elementNode) { { _key = elementNode.Attributes["key"].Value; if (elementNode.Attributes["zorder"] != null) { _zOrder = elementNode.Attributes["zorder"].Value; } _xmlLayoutDefinition = new XmlLayoutDefinition(elementNode.SelectSingleNode("layout")); } }
protected void ParseLayout(XmlLayoutDefinition xmlLayout) { layoutContainer = new Layout.LayoutContainer(this, xmlLayout); }