摘要:
1.在视图中PlotView.xaml2.在视图的CS文件中PlotView.xaml.cs private int SelectedBarNo = -1; private void button2_Click(object sender, RoutedEventArgs e) { PlotViewModel pvm = this.DataContext as PlotViewModel; SelectedBarNo = -1; if (pvm != null) { pvm.BarNo = SelectedBarNo; pvm.SetInfo(SelectedBarNo); } tChart1 阅读全文