Esempio n. 1
0
 private void OnControlClick(object sender, EventArgs e)
 {
     if (Element.Parent is CollectionView collection)
     {
         var command = CustomPressedEffect.GetCommandClick(Element);
         command?.Execute(collection);
     }
 }
Esempio n. 2
0
        private void OnControlLongPress(object sender, LongClickEventArgs e)
        {
            var command = CustomPressedEffect.GetCommandLongPress(Element);

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