public XElement ToXml(IToXmlContext ctx) { return(new XElement("JoyrideStepStyle", new XAttribute("Guid", Guid), new XElement("Name", Name), BackgroundColor.IsNullOrEmpty() ? null : new XElement("BackgroundColor", BackgroundColor), MainColor.IsNullOrEmpty() ? null : new XElement("MainColor", MainColor), Color.IsNullOrEmpty() ? null : new XElement("Color", Color), BorderRadius.IsNullOrEmpty() ? null : new XElement("BorderRadius", BorderRadius), TextAlign.IsNullOrEmpty() ? null : new XElement("TextAlign", TextAlign), Width.IsNullOrEmpty() ? null : new XElement("Width", Width))); }