Mick Posted February 4, 2010 Report Share Posted February 4, 2010 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 Quote Link to comment Share on other sites More sharing options...
JuanC Posted February 5, 2010 Report Share Posted February 5, 2010 This is a bug fixed on build 3688 or later (this should be available as a hotfix in a couple of days). Note that the Point and Value reported in the EventArgs will be the index/value closer to the mouse position. JuanC Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.