示例#1
0
        /// <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);
        }
示例#2
0
 public static void SetBackgroundColor(INativeElement nativeElement, string color)
 {
     nativeElement.SetStyleAttributeValue("backgroundColor", color ?? "");
 }
 private static void SetBackgroundColor(INativeElement nativeElement, string color)
 {
     nativeElement.SetStyleAttributeValue("backgroundColor", color ?? "");
 }