/// <summary>
        /// Invoke the command if there is one
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="e">E.</param>
        private void Control_LongClick(object sender, Android.Views.View.LongClickEventArgs e)
        {
            Console.WriteLine("Invoking long click command");
            var command = PressedEffect.GetLongClickCommand(Element);

            command?.Execute(PressedEffect.GetCommandParameter(Element));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Invoke the command if there is one
        /// </summary>
        private void HandleLongClick()
        {
            var command = PressedEffect.GetLongClickCommand(Element);

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