public override void TouchesBegan(NSSet touches, UIEvent evt) { if (TrackLayer.Frame.Contains(Layer.ConvertPointToLayer(touches.ToArray <UITouch>()[0].LocationInView(this), Layer))) { SetOn(internalSwitchState != SwitchState.On, true); } }
public override void TouchesBegan(NSSet touches, UIEvent evt) { base.TouchesBegan(touches, evt); UITouch touch = touches.AnyObject as UITouch; Animation.pulseExpandAnimation(layer: Layer, visualLayer: VisualLayer, point: Layer.ConvertPointToLayer(point: touch.LocationInView(this), layer: Layer), width: this.Width(), height: this.Height(), pulse: Pulse); BringImageViewToFront(); }