Beispiel #1
0
        private void ViewOnLongClick(object sender, View.LongClickEventArgs longClickEventArgs)
        {
            var cmd = Commands.GetLongTap(Element);

            if (cmd == null)
            {
                longClickEventArgs.Handled = false;
                return;
            }

            cmd.Execute(Commands.GetLongTapParameter(Element));
            longClickEventArgs.Handled = true;
        }
        private void ViewOnLongClick(object sender, View.LongClickEventArgs longClickEventArgs)
        {
            var cmd = TapCommandEffect.GetLongTap(Element);

            if (cmd == null)
            {
                longClickEventArgs.Handled = false;
                return;
            }

            NotifyTask.Create(
                async() =>
            {
                await Task.Delay(50);
                cmd.Execute(TapCommandEffect.GetLongTapParameter(Element));
                longClickEventArgs.Handled = true;
            });
        }
        /// <summary>
        /// Invoke the command if there is one.
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="e">Event arguments.</param>
        private void Control_LongClick(object sender, View.LongClickEventArgs e)
        {
            var command = LongPressedEffect.GetCommand(Element);

            command?.Execute(LongPressedEffect.GetCommandParameter(Element));
        }
        private void OnLongClick(object sender, View.LongClickEventArgs e)
        {
            var command = TeamTimer.Effects.TapOrTapAndHoldEffect.GetTapAndHoldCommand(Element);

            command?.Execute(TeamTimer.Effects.TapOrTapAndHoldEffect.GetTapAndHoldCommandParameter(Element));
        }
Beispiel #5
0
 private void Control_LongClick(object sender, View.LongClickEventArgs e)
 {
     _portableControl?.OnLongClick();
 }