void HandleDragStarted(object sender, C1DragStartedEventArgs e)
        {
            var ht = flexChart.HitTest(e.GetPosition(flexChart));

            if (ht.Distance < 3 && ht.X != null && ht.Y != null)
            {
                clickedItem = ht.Item as DataItem;
            }
        }
Exemplo n.º 2
0
 void OnDragStarted(object sender, C1DragStartedEventArgs e)
 {
     _position = e.GetPosition(image);
     _line     = new Line
     {
         X1                 = _position.X,
         Y1                 = _position.Y,
         X2                 = _position.X,
         Y2                 = _position.Y,
         Stroke             = new SolidColorBrush(Colors.Blue),
         StrokeThickness    = 7,
         StrokeEndLineCap   = PenLineCap.Triangle,
         StrokeStartLineCap = PenLineCap.Round
     };
     imageGrid.Children.Add(_line);
 }