dataGrid.SwipeStarted += DataGrid_SwipeStarted;
dataGrid.Swiping += DataGrid_Swiping;
dataGrid.SwipeEnded += DataGrid_SwipeEnded;
//Swipe ended event will fire once you the swiping process is ended
private void DataGrid_SwipeEnded(object sender, SwipeEndedEventArgs e)
{
}
//Swiping event will fire when the swiping process is in progress
private void DataGrid_Swiping(object sender, SwipingEventArgs e)
{
}
//Swipe started event will fire once you started the swiping process
private void DataGrid_SwipeStarted(object sender, SwipeStartedEventArgs e)
{
} |
Thanks, but how could I execute a function when I slide to the left, and another function when I slide right, because I could already use the "DataGrid_SwipeEnded" event, but always executes the same function when I slide to both sides
private void DataGrid_SwipeEnded(object sender, SwipeEndedEventArgs e)
{
if (e.SwipeDirection == SwipeDirection.Right)
PerformFunction1();
else
PerformFunction2();
} |