Hello,
I want to know if a user tap in the left or in the right side of the control. The code I'm using is:
private void PdfViewer_OnTapped(object a_Sender, TouchInteractionEventArgs a_E)
{
bool? toLeft = null;
if (a_E.Position.X < Width * 0.3)
{
toLeft = false;
}
else if (a_E.Position.X > Width * 0.7)
{
toLeft = true;
}
}
But X value, if I tap on the right edge it's far greater than the Width. How can I transform Point values to map to Width and Height values?.
Or there is any way to get the maximum value TouchInteractionEventArgs.Point.X can have?
Greetings,
David
Yes, that its. If the user taps on the left side then the previous pdf will be loaded but if the user taps on the right side then the next pdf will be loaded.