private void OnMouseLeftClick(object sender, EventArgs e) { if (!_targetting) { _targetting = true; _sampleCount = 0; _sampleTail = 0; _isArmed = false; GazeInput.HitTest += OnHitTest; //var cursor = new Canvas(); //cursor.Children.Add(new Ellipse //{ // Width = 50, // Height = 50, // Margin = new Thickness(-25), // Stroke = Brushes.Green //}); //cursor.Children.Add(new Line //{ // X1 = -25, // X2 = 25, // Y1 = 0, // Y2 = 0, // Stroke = Brushes.Green //}); //cursor.Children.Add(new Line //{ // X1 = 0, // X2 = 0, // Y1 = -25, // Y2 = 25, // Stroke = Brushes.Green //}); //var cursor = new Ellipse //{ // Fill = new SolidColorBrush(Colors.Blue), // VerticalAlignment = VerticalAlignment.Top, // HorizontalAlignment = System.Windows.HorizontalAlignment.Left, // Width = 2 * 50, // Height = 2 * 50, // Margin = new Thickness(-50, -50, 0, 0), // IsHitTestVisible = false //}; GazeInput.SetCustomCursor(null /*cursor*/); } }