private void SetCornerRadius()
        {
            var cornerRadius = RoundCornersEffect.GetCornerRadius(Element) * GetDensity();

            if (Android.OS.Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.Lollipop)
            {
                Container.OutlineProvider = new RoundedOutlineProvider((float)cornerRadius);
            }
            else
            {
                // Do things the pre-Lollipop way
            }
        }
        private void SetCornerRadius()
        {
            var cornerRadius = RoundCornersEffect.GetCornerRadius(Element) * GetDensity();

            _effectTarget.OutlineProvider = new RoundedOutlineProvider(cornerRadius);
        }
Beispiel #3
0
        private void SetCornerRadius()
        {
            var cornerRadius = RoundCornersEffect.GetCornerRadius(Element);

            Container.Layer.CornerRadius = new nfloat(cornerRadius);
        }