public void SetEnabled(bool enabled) { if (enabled) { if (_tapRecognizer.View == null) { Owner.AddGestureRecognizer(_tapRecognizer); } } else { if (_tapRecognizer.View != null) { Owner.RemoveGestureRecognizer(_tapRecognizer); } } }