private void ChartSelectionBehavior_SelectionChanged(object sender, Telerik.Windows.Controls.ChartView.ChartSelectionChangedEventArgs e)
 {
     if (e.AddedPoints.Count > 0)
     {
         var addedPoint        = e.AddedPoints[0];
         RetailMonthTagetBO bo = (RetailMonthTagetBO)addedPoint.DataItem;
         this.SetSaleDetails(bo);
     }
 }
Пример #2
0
 private void ChartSelectionBehavior_SelectionChanged(object sender, Telerik.Windows.Controls.ChartView.ChartSelectionChangedEventArgs e)
 {
     this.Dispatcher.BeginInvoke((Action)(() =>
     {
         MainViewModel vm = (MainViewModel)this.DataContext;
         if (vm != null && e.AddedPoints.Count > 0)
         {
             vm.HandleItemClicked(e.AddedPoints[0].DataItem);
         }
     }));
 }