Hello,
There is a PageMouseMove event on the PdfViewer control which fires when the mouse is being hovered over the page (https://help.syncfusion.com/windowsforms/pdf-viewer/how-to/get-mouse-position).
I'm looking for a way to know when the mouse crosses the border of the page into the background of the control (marked in the red circle below):
Can someone point me in the right direction?
Hi Divya,
Thanks for the sample project.
My requirement is a little bit different, I don't specifically need to know when the mouse is on the border, instead I need to know when the mouse is outside of the page. When I start the sample and move the mouse fast enough I can easily cross the border without the message box showing up. Is there also an easy way to know when the mouse is located outside the page?
|
{
if(e.OriginalSource is System.Windows.Controls.ScrollViewer)
{
}
} |
Hi Divya,
Never thought it would be this simple! Thanks a lot for this solution, it works perfectly.
Regards,
Wouter.