Exemple #1
0
        public static void ApplyCornerRadius(this UIView @this, XPlatCornerRadius cornerRadius)
        {
            if (@this == null || cornerRadius == null)
            {
                return;
            }

            @this.ApplyCornerRadius(GetRectCorners(cornerRadius), cornerRadius.Radius);
        }
Exemple #2
0
        public static void ApplyStyle(this UIView @this, XPlatViewStyle style)
        {
            if (@this == null || style == null)
            {
                return;
            }

            @this.ApplyBackgroundColor(style.BackgroundColor);
            @this.ApplyCornerRadius(style.CornerRadius);
            @this.ApplyBorderColor(style.BorderColor, cornerRadius: style.CornerRadius);
        }