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