protected override void OnDetached() { if (IsDisposed) { return; } TouchCollector.Delete(View, OnTouch); }
protected override void OnDetached() { if (IsDisposed) { return; } Container.RemoveView(_viewOverlay); _viewOverlay.Pressed = false; _viewOverlay.Foreground = null; _viewOverlay.Dispose(); Container.LayoutChange -= ViewOnLayoutChange; if (EnableRipple) { _ripple?.Dispose(); } TouchCollector.Delete(View, OnTouch); }