private void StackPanel_MouseMove( object sender, MouseEventArgs e) { Debug.WriteLine( "Move" ); Point spRel = e.GetPosition((IInputElement)e.OriginalSource); Debug.WriteLine( "* StackPanel: ({0},{1})" , spRel.X, spRel.Y); Point winRel = e.GetPosition( this ); Debug.WriteLine( "* Window: ({0},{1})" , winRel.X, winRel.Y); } |