protected override void OnDetached() { var view = Control ?? Container; view.Layer.MasksToBounds = _DefaultMaskToBounds; view.BackgroundColor = _DefaultBackgroundColor; _BorderLayer?.RemoveFromSuperLayer(); _BorderLayer = null; TapGestureCollector.Delete(_view, TapAction); LongTapGestureCollector.Delete(_view, LongTapAction); _layer?.Dispose(); _layer = null; }
protected override void OnDetached() { TapGestureCollector.Delete(_view, TapAction); // LongTapGestureCollector.Delete(_view, LongTapAction); }