In my XAML, I have something like:
<client:View ...
...
<controls:Location Canvas.Left="169500"
Canvas.Top="52610"
LocationName="Location_Name"
Rotation="0" MouseDoubleClick="Location_MouseDoubleClick"/>
A Location
is a subclass from , as you can see:
using System.Windows.Controls;
...
public class Location : UserControl ...
In the corresponding *.xaml.cs
, I have:
private void Location_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
<namespace>.Location Loc = sender as <namespace>.Location;
Point location_Point = Mouse.GetPosition(this);
// This gives the X and Y coordinates of the mouse pointer.
// I would like to know the X and Y coordinates of the Location object,
// without needing to pass via a mouse event, such as:
Loc. // but what attributes/properties contain that information?
Does anybody have an idea?
Thanks in advance