コード例 #1
0
        private void ShowPalette()
        {
            var height = UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone ? 30 : 50;

            PaletteView.Frame = new CGRect(Frame.X, Frame.Height - height, Frame.Width, height);
            PaletteView.Layout();
            Animate(0.5, 0.2, UIViewAnimationOptions.CurveLinear, () =>
                    Superview.Add(PaletteView), null);
        }
コード例 #2
0
 public override void LayoutSubviews()
 {
     base.LayoutSubviews();
     if (_blur != null && Superview != null)
     {
         _blur.Frame = Bounds;
         if (_blur.Superview == null)
         {
             Superview.Add(_blur);
         }
     }
 }
コード例 #3
0
 public override void Draw(RectangleF rect)
 {
     base.Draw(rect);
     if (_blur != null)
     {
         _blur.Frame = rect;
         if (_blur.Superview == null)
         {
             Superview.Add(_blur);
         }
     }
 }
コード例 #4
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();
            }
        }
コード例 #5
0
        public override void LayoutSubviews()
        {
            base.LayoutSubviews();

            OkButton.NextToThisView(this, 5);
            if (OkButton.Superview == null)
            {
                Superview.Add(OkButton);
            }

            DeleteButton.NextToThisView(this, 5)
            .BelowThisView(OkButton, 10);
            if (DeleteButton.Superview == null)
            {
                Superview.Add(DeleteButton);
            }

            EditSignatureButton.NextToThisView(this, 5)
            .BelowThisView(DeleteButton, 10);
            if (EditSignatureButton.Superview == null)
            {
                Superview.Add(EditSignatureButton);
            }
        }