Exemplo n.º 1
0
        public override void LayoutSubviews()
        {
            base.LayoutSubviews();

            if (_blur != null && Superview != null)
            {
                _blur.Frame = Frame;
                if (_blur.Superview == null)
                {
                    Superview.Add(_blur);
                }
            }

            bool hasBackground = Element?.Background != null && !Element.Background.IsEmpty;

            if (hasBackground)
            {
                NativeView.UpdateBackgroundLayer();
            }
        }