Please give a brief summary of your issue:
New added window coordinate issue
Please describe your issue and provide steps to reproduce it:
I am using the WPFViewWPF sample code and mainly working on the “PDFViewWPFTestCS2019” .
In “PDFViewWPFToolsCS2019”, I add a Menu class (extend from Window). In the public class “AnnotEdit”, in the over ride method “MouseLeftButtonDownHandler” I added “menuclass.Show()” to open it.
My purpose is when user click on one exist annotation, this menu will pop up and the location is close to this annotation.
I am trying to use
According to SelectionHelper.cs (In PDFViewWPFTools project) the BoundingBoxRect is rectangle in the viewer's canvas space and not in PagePt as you are calling.
I’m not sure what coordinate system your menuClass is in, but you might be able to use the coordinates as is, or you can use one of the PDFViewWPF.ConvCanvasPtToXXXX calls.
I create my Menu Class under “PDFViewWPFToolsCS2019” - “Utilities” , and is a public partial class inherited Window. I am new to WPF and not sure which coordinate system this menu is in.
So now I am using
In this case, the Y position is right but the X position is still far away from the annotation.
And if I zoom in the PDF file, the MenuClass will not show(the Y position is wrong ).