Example #1
0
        void OnButtonTouchUpInside(object sender, EventArgs eventArgs)
        {
            ButtonElementManager.OnButtonTouchUpInside(this.Element);

            if (!Element.IsChecked)
            {
                Element.IsChecked = !Element.IsChecked;
            }

            _radioButtonLayer.SetNeedsDisplay();
        }
        protected override void Dispose(bool disposing)
        {
            if (_isDisposed)
            {
                return;
            }

            if (disposing && Control != null)
            {
                ButtonElementManager.Dispose(this);
                BorderElementManager.Dispose(this);
                ImageElementManager.Dispose(this);
            }

            _isDisposed = true;
            base.Dispose(disposing);
        }
        readonly nfloat _minimumButtonHeight = 44;         // Apple docs


        public ImageButtonRenderer() : base()
        {
            ButtonElementManager.Init(this);
            BorderElementManager.Init(this);
            ImageElementManager.Init(this);
        }
Example #4
0
 void OnButtonTouchDown(object sender, EventArgs eventArgs)
 {
     ButtonElementManager.OnButtonTouchDown(this.Element);
 }
Example #5
0
 void OnButtonTouchUpInside(object sender, EventArgs eventArgs)
 {
     ButtonElementManager.OnButtonTouchUpInside(this.Element);
 }