I have a ListBox, and when I select an item in this ListBox, I want to duplicate the image and place it on a Canvas containing all the other objects in my application. This works fine for the most part, however, if the item in the ListBox is next, so I need to scroll to see the item, the coordinates are no longer accurate.
Is there a function like Canvas.getGlobalPosition (UIElement) that would then allow me to set Canvas.SetTop (uiElement, globalCoordinateSpace.Y) and let me perfectly place one image directly on another, no matter where it is in the ListBox?
Thanks.
source share