Пример #1
0
            public override void GetOutline(View view, Outline outline)
            {
                var pixels =
                    (float)ThemeEffects.GetCornerRadius(_element) *
                    view.Resources.DisplayMetrics.Density;

                outline.SetRoundRect(new Rect(0, 0, view.Width, view.Height), (int)pixels);
            }
Пример #2
0
 private void UpdateCorner()
 {
     Container.Layer.CornerRadius = (nfloat)ThemeEffects.GetCornerRadius(Element);
 }