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); }
public override void LayoutSubviews() { base.LayoutSubviews(); if (_blur != null && Superview != null) { _blur.Frame = Bounds; if (_blur.Superview == null) { Superview.Add(_blur); } } }
public override void Draw(RectangleF rect) { base.Draw(rect); if (_blur != null) { _blur.Frame = rect; if (_blur.Superview == null) { Superview.Add(_blur); } } }
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(); } }
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); } }