/// <summary> /// Saves the entire <see cref="IBrush"/> to a XElement. /// </summary> /// <param name="elementName"> The element name. </param> /// <param name="brush"> The destination <see cref="IBrush"/>. </param> public static XElement SaveBrush(string elementName, IBrush brush) { XElement element = new XElement(elementName); element.Add(new XAttribute("Type", brush.Type)); //SaveWith { brush.SaveWith(element); } return(element); }