public static nfloat CornerRadiusPresetToValue(CornerRadiusPreset radius) { switch (radius) { case CornerRadiusPreset.None: return(0); case CornerRadiusPreset.Radius1: return(2); case CornerRadiusPreset.Radius2: return(4); case CornerRadiusPreset.Radius3: return(8); case CornerRadiusPreset.Radius4: return(12); case CornerRadiusPreset.Radius5: return(16); case CornerRadiusPreset.Radius6: return(20); case CornerRadiusPreset.Radius7: return(24); case CornerRadiusPreset.Radius8: return(28); case CornerRadiusPreset.Radius9: return(32); default: return(default(nfloat)); } }
public static void SetCornerRadiusPreset(this Card view, CornerRadiusPreset value) { view.Layer.SetCornerRadiusPreset(value); view.Container.SetCornerRadiusPreset(value); }
public static void SetCornerRadiusPreset(this UIView view, CornerRadiusPreset value) { view.Layer.SetCornerRadiusPreset(value); }
public static void SetCornerRadiusPreset(this CALayer layer, CornerRadiusPreset value) { layer.MaterialLayer().CornerRadiusPreset = value; }