private void UpdateTapFeedbackColor()
        {
            _view = Control ?? Container;

            _view.UserInteractionEnabled = true;

            TapGestureCollector.Add(_view, TapAction);
            LongTapGestureCollector.Add(_view, LongTapAction);

            UpdateEffectColor();
        }
Exemple #2
0
        protected override void OnAttached()
        {
            _view = Control ?? Container;
            _view.UserInteractionEnabled = true;

            UpdateTap();
            UpdateTapParameter();
            UpdateLongTap();
            UpdateLongTapParameter();

            TapGestureCollector.Add(_view, TapAction);
            // LongTapGestureCollector.Add(_view, LongTapAction);
        }
        protected override void OnDetached()
        {
            var view = Control ?? Container;

            if (view != null)
            {
                view.BackgroundColor = _DefaultBackgroundColor;
                if (view.Layer != null)
                {
                    view.Layer.MasksToBounds = _DefaultMaskToBounds;
                }
            }

            _BorderLayer?.RemoveFromSuperLayer();
            _BorderLayer = null;

            TapGestureCollector.Delete(_view, TapAction);
            LongTapGestureCollector.Delete(_view, LongTapAction);
            _layer?.Dispose();
            _layer = null;
        }
Exemple #4
0
 protected override void OnDetached()
 {
     TapGestureCollector.Delete(_view, TapAction);
     // LongTapGestureCollector.Delete(_view, LongTapAction);
 }