예제 #1
0
 public static void SetCornerRadius(this MCard view, ICornerElement cornerElement)
 {
     view.CornerRadius = (nfloat)cornerElement.CornerRadius.TopLeft;
 }
예제 #2
0
 public static void SetCornerRadius(this UIView view, ICornerElement cornerElement)
 {
     view.SetCornerRadius(cornerElement.CornerRadius);
 }
 public static bool IsAllRadius(this ICornerElement cornerRadius)
 {
     return(cornerRadius.CornerRadius.IsAllRadius());
 }
 public static float[] ToRadii(this ICornerElement cornerElement, double density)
 {
     return(cornerElement.CornerRadius.ToRadii(density));
 }
 public static bool IsEmpty(this ICornerElement cornerRadius)
 {
     return(cornerRadius.CornerRadius.IsEmpty());
 }
예제 #6
0
 public static void SetCornerRadius(this Chip view, Context context, ICornerElement cornerElement)
 {
     view.ChipCornerRadius = context.ToPixels(cornerElement.CornerRadius.TopLeft);
 }
예제 #7
0
 public static void SetCornerRadius(this MaterialButton view, Context context, ICornerElement cornerElement)
 {
     view.CornerRadius = (int)context.ToPixels(cornerElement.CornerRadius.TopLeft);
 }
예제 #8
0
 public static void SetCornerRadius(this MaterialCardView view, Context context, ICornerElement cornerElement)
 {
     view.Radius = context.ToPixels(cornerElement.CornerRadius.TopLeft);
 }
예제 #9
0
 public static void SetCornerRadius(this AView view, Context context, VisualElement element, ICornerElement cornerElement, Color?color = null)
 {
     view.SetCornerRadius(context, element, cornerElement.CornerRadius, color);
 }