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