This seems really simple but really having an issue! I have a button, that when I click on it, I want the x,y coordinates of one corner so I can pop up a window in a certain location from the button. I know the height and width of the button, and I can get the coordinates of where I have clicked with the mouse, but really struggling to get ccordinates of a corner. This is what I have so far:
Private Sub HandleClick(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
Dim clickLocationPos = Mouse.GetPosition(Window.GetWindow(Me))
Dim xPos = clickLocationPos.X
Dim yPos = clickLocationPos.Y
End If
End Sub