Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
 public static void SetElevation(this MCard view, IElevationElement elevationElement)
 {
     view.SetShadowElevation((nfloat)elevationElement.Elevation, UIControlState.Normal);
 }
Ejemplo n.º 3
0
 public static void SetCornerRadius(this MCard view, ICornerElement cornerElement)
 {
     view.CornerRadius = (nfloat)cornerElement.CornerRadius.TopLeft;
 }
Ejemplo n.º 4
0
 public static void SetBorder(this MCard view, IBorderElement borderElement)
 {
     view.SetBorder(borderElement.BorderColor, borderElement.BorderWidth);
 }