Esempio n. 1
0
        private void _nativeView_PointerReleased(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
        {
            var block = (e.OriginalSource as TextBlock);

            if (block != null)
            {
                var patientInfo = (block.DataContext as ViewCell).BindingContext;
                _itemholdingEffect?.ControlLongPressed(patientInfo);
            }
        }
        /// <summary>
        /// Invoke the command if there is one
        /// </summary>
        private void HandleLongClick()
        {
            if (Element == null || _longPressedEffect == null)
            {
                Debug.WriteLine("Null");
                return;
            }

            if (_longPressRecognizer.State == UIGestureRecognizerState.Began)
            {
                _longPressedEffect.ControlLongPressed(Element);
                var command = ItemholdingEffect.GetCommand(Element);
                command?.Execute(ItemholdingEffect.GetCommandParameter(Element));
            }
        }
        private void Control_LongClick(object sender, LongClickEventArgs e)
        {
            var patientInfo = Element.BindingContext;

            _itemholdingEffect?.ControlLongPressed(patientInfo);
        }