Example #1
0
 public static void SetBorder(this MCard view, Color color, double width)
 {
     if (color == Color.Default)
     {
         view.SetBorderColor(UIColor.Clear, UIControlState.Normal);
     }
     else
     {
         view.SetBorderWidth((nfloat)width, UIControlState.Normal);
         view.SetBorderColor(color.ToUIColor(), UIControlState.Normal);
     }
 }
Example #2
0
 public static void SetElevation(this MCard view, IElevationElement elevationElement)
 {
     view.SetShadowElevation((nfloat)elevationElement.Elevation, UIControlState.Normal);
 }
Example #3
0
 public static void SetCornerRadius(this MCard view, ICornerElement cornerElement)
 {
     view.CornerRadius = (nfloat)cornerElement.CornerRadius.TopLeft;
 }
Example #4
0
 public static void SetBorder(this MCard view, IBorderElement borderElement)
 {
     view.SetBorder(borderElement.BorderColor, borderElement.BorderWidth);
 }