Hi,
I'm using MVVM base on the example of DrillDownCHart. My itemToolTipOpening chart is working fine. But the ChartArea_ItemClick doesn't work. ToolTipOpening and ItemClick share the same viewModel and chart Xaml.
Updates: I found that this actually working, but it's just hard to capture the chart, it's blinking. And sometimes it went to tipopenning first and that took awhile comeback to itemClick. So my question are
1) how to separate these two events, meaning click should not go to ToolTipOpenning
2) how to make the itemClick chart staple. Anything could through xaml?
I'm using MVVM base on the example of DrillDownCHart. My itemToolTipOpening chart is working fine. But the ChartArea_ItemClick doesn't work. ToolTipOpening and ItemClick share the same viewModel and chart Xaml.
Updates: I found that this actually working, but it's just hard to capture the chart, it's blinking. And sometimes it went to tipopenning first and that took awhile comeback to itemClick. So my question are
1) how to separate these two events, meaning click should not go to ToolTipOpenning
2) how to make the itemClick chart staple. Anything could through xaml?
private
void ChartArea_ItemClick(object sender, ChartItemClickEventArgs e)
{
DataPoint selectedItem = e.DataPoint ;
DrillDownChartViewModel dViewModel = new DrillDownChartViewModel();
dViewModel =
this.ViewModel.ActiveDetails.DrillDownChartSeries.FirstOrDefault(d => d.DataItem == e.DataPoint);
dViewModel.LoadToolTipSourceTable(selectedItem);
DrillDownChartToolTip toolTipControl = new DrillDownChartToolTip();
toolTipControl.DataContext = dViewModel;
toolTipControl.Height = 200;
toolTipControl.Width = 420;
}