Example #1
0
 protected override void OnDetached()
 {
     if (IsDisposed)
     {
         return;
     }
     TouchCollector.Delete(View, OnTouch);
 }
Example #2
0
        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);
        }