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;
            });
        }
示例#2
0
 private void UpdateLongTapParameter()
 {
     _longParameter = TapCommandEffect.GetLongTapParameter(Element);
 }