Beispiel #1
0
        private void Control_Click(object sender, EventArgs e)
        {
            Console.WriteLine("Invoking click command");
            var command = PressedEffect.GetCommand(Element);

            command?.Execute(PressedEffect.GetCommandParameter(Element));
        }
 private void HandleLongClick(UILongPressGestureRecognizer recognizer)
 {
     if (recognizer.State == UIGestureRecognizerState.Ended)
     {
         var command = PressedEffect.GetLongTapCommand(Element);
         command?.Execute(PressedEffect.GetLongParameter(Element));
     }
 }
Beispiel #3
0
 private void Control_Touch(object sender, Android.Views.View.TouchEventArgs e)
 {
     if (e.Event.Action == MotionEventActions.Down)
     {
         var command = PressedEffect.GetLongPressedCommand(Element);
         command?.Execute(PressedEffect.GetLongParameter(Element));
     }
     else if (e.Event.Action == MotionEventActions.Up)
     {
         var command = PressedEffect.GetLongRelesedCommand(Element);
         command?.Execute(PressedEffect.GetLongParameter(Element));
     }
 }
        private void HandleClick()
        {
            var command = PressedEffect.GetTapCommand(Element);

            command?.Execute(PressedEffect.GetTapParameter(Element));
        }
        private void Control_LongClick(object sender, Android.Views.View.LongClickEventArgs e)
        {
            var command = PressedEffect.GetLongTapCommand(Element);

            command?.Execute(PressedEffect.GetLongParameter(Element));
        }
        private void Control_Click(object sender, EventArgs e)
        {
            var command = PressedEffect.GetTapCommand(Element);

            command?.Execute(PressedEffect.GetTapParameter(Element));
        }
        /// <summary>
        /// Invoke the command if there is one
        /// </summary>
        private void HandleLongClick()
        {
            var command = PressedEffect.GetLongClickCommand(Element);

            command?.Execute(PressedEffect.GetCommandParameter(Element));
        }