protected void OnTargetPointChanged(TargetPointChangedEventArgs e)
 {
     var handler = this.TargetPointChanged;
     if (handler != null)
     {
         handler(this, e);
     }
 }
        private void TargetPointGenerator_TargetPointChanged(object sender, TargetPointChangedEventArgs e)
        {
            // Get position of point relative to that of eye interaction canvas
            var relativeTarget = new Point(0, 0);

            this.EyeInteraction.Dispatcher.Invoke(new Action(() =>
                {
                    try
                    {
                        if (e.Point.HasValue)
                        {
                            relativeTarget = e.Point.Value;
                            debug.Text = string.Format("{0}, {1}", e.Point.Value.X, e.Point.Value.Y);
                            //relativeTarget = this.EyeInteraction.PointFromScreen(e.Point.Value);
                        }
                        else
                        {
                            relativeTarget = new Point(0, 0);
                        }
                    }
                    catch
                    {
                    }
                }));

            // Move eye)
            this.AdjustEye(relativeTarget, 40.0, -15.0, 15.0);
        }