Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 object IXmlSavable.FromXmlElement(XmlElement element)
 {
     XmlElementConverter.ToSavablePropsOf(this, element.GetChildElements());
     return(this);
 }
Exemplo n.º 3
0
 public static object FromXmlElement(this BrushBase brush, XmlElement element)
 {
     XmlElementConverter.ToNameFieldsOf(brush, element.GetChildElements(), "pen", "font");
     return(brush);
 }
Exemplo n.º 4
0
 object IXmlSavable.FromXmlElement(XmlElement element)
 {
     ((IXmlSavable)this).Name = element.Name;
     XmlElementConverter.ToNamePropsOf(this, element.GetChildElements(), "Brush");
     return(this);
 }