I want to handle SeriesEventMark label is mouse click event.
But it does not fired event.
It is bug?
Code: Select all
SeriesEventMarker cursorLegend = new SeriesEventMarker(series);
cursorLegend.Symbol.Shape = Shape.Rectangle;
cursorLegend.Symbol.GradientFill = GradientFillPoint.Solid;
cursorLegend.Symbol.Color1 = series.LineStyle.Color;
cursorLegend.Symbol.Antialiasing = false;
cursorLegend.Label.Text = paramInfo.FullName;
cursorLegend.Label.VerticalAlign = AlignmentVertical.Center;
cursorLegend.VerticalPosition = SeriesEventMarkerVerticalPosition.YAxisTop;
cursorLegend.HorizontalPosition = SeriesEventMarkerHorizontalPosition.AtXValue;
cursorLegend.Offset.Y = -8;
cursorLegend.MouseInteraction = true;
cursorLegend.MoveByMouse = false;
cursorLegend.ClipInsideGraph = false;
cursorLegend.Label.Distance = 5;
cursorLegend.Label.Font = this.chart.Font;
cursorLegend.Label.Color = Color.Black;
cursorLegend.Label.MouseInteraction = true;
cursorLegend.Label.MouseHighlight = cursorLegend.MouseHighlight;
cursorLegend.Label.MouseClick += CursorLegend_MouseClick;
Code: Select all
private void CursorLegend_MouseClick(object sender, MouseEventArgs e)
{
//not fire..
}