/// <summary> /// Sets the attribute value. /// </summary> /// <param name="attributeName">Name of the attribute.</param> /// <param name="value">The value.</param> public void SetAttributeValue(string attributeName, string value) { if (UtilityClass.IsNullOrEmpty(attributeName)) { throw new ArgumentNullException("attributeName", "Null or Empty not allowed."); } _nativeElement.SetStyleAttributeValue(attributeName, value); }
public static void SetBackgroundColor(INativeElement nativeElement, string color) { nativeElement.SetStyleAttributeValue("backgroundColor", color ?? ""); }
private static void SetBackgroundColor(INativeElement nativeElement, string color) { nativeElement.SetStyleAttributeValue("backgroundColor", color ?? ""); }