object IXmlSavable.FromXmlElement(XmlElement element) { XmlElementConverter.ToCollection(this, element, (ele) => { Category category = new Category("Wheat"); (category as IXmlSavable).FromXmlElement(ele); return(category); }, bindingName: null); return(this); }
object IXmlSavable.FromXmlElement(XmlElement element) { XmlElementConverter.ToSavablePropsOf(this, element.GetChildElements()); return(this); }
public static object FromXmlElement(this BrushBase brush, XmlElement element) { XmlElementConverter.ToNameFieldsOf(brush, element.GetChildElements(), "pen", "font"); return(brush); }
object IXmlSavable.FromXmlElement(XmlElement element) { ((IXmlSavable)this).Name = element.Name; XmlElementConverter.ToNamePropsOf(this, element.GetChildElements(), "Brush"); return(this); }