Hi,
I'm trying to get the position of a canvas from a mouse move handler but it returns NeuN.
The canvas is inside another canvas and the code is:
Console.WriteLine(Canvas.GetTop(canvas2));
this is inside:
private void move(object sender, MouseEventArgs e)
{
Console.WriteLine(Canvas.GetTop(canvas2));
}
I'd say it can't be a scope problem because as SetTop works fine.
Any ideas? Thanks in advance :)