Version 8.0.3581.26941
The ChartFX.WPF.Chart.MouseClick event is not firing for Area charts, but is for Bar/Pie. There may be others, but these are the only ones I'm currently using in my system (and have tested).
private void CreateChartsButton_Click(object sender, RoutedEventArgs e)
{
// Separate scope to eliminate copy/paste errors
{
Chart chart = new Chart { Gallery = Gallery.
Area };
chart.MouseClick += delegate { MessageBox.Show("Chart clicked"); };
Window window = new Window { Title = "Chart click", Content = chart, Width = 500, Height = 300, };
window.Show();
}
// Separate scope to eliminate copy/paste errors
{
Chart chart = new Chart { Gallery = Gallery.
Bar };
chart.MouseClick += delegate { MessageBox.Show("Chart clicked"); };
Window window = new Window { Title = "Chart click", Content = chart, Width = 500, Height = 300, };
window.Show();
}
}
Is there some special way that the MouseClick event works on an area chart?
Thank you,
Mick