예제 #1
0
 internal void OnDataClick(object sender, ChartPoint point)
 {
     if (DataClick != null)
     {
         DataClick.Invoke(sender, point);
     }
 }
예제 #2
0
 public CartesianChart()
 {
     Child              = WpfBase;
     WpfBase.DataClick += (o, point) =>
     {
         if (DataClick != null)
         {
             DataClick.Invoke(o, point);
         }
     };
 }
예제 #3
0
 public PieChart()
 {
     Child            = Chart;
     Chart.DataClick += (o, point) =>
     {
         if (DataClick != null)
         {
             DataClick.Invoke(o, point);
         }
     };
 }
예제 #4
0
        private void DataMouseDown(object sender, MouseEventArgs e)
        {
            var result = Series.SelectMany(x => x.Values.Points).FirstOrDefault(x =>
            {
                var pointView = x.View as PointView;
                return(pointView != null && Equals(pointView.HoverShape, sender));
            });

            if (DataClick != null)
            {
                DataClick.Invoke(sender, result);
            }
        }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PieChart"/> class.
 /// </summary>
 public PieChart()
 {
     Child              = WpfBase;
     WpfBase.DataClick += (o, point) =>
     {
         if (DataClick != null)
         {
             DataClick.Invoke(o, point);
         }
     };
     if (LicenseManager.UsageMode == LicenseUsageMode.Designtime)
     {
         WpfBase.Series = WpfBase.GetDesignerModeCollection();
     }
 }
예제 #6
0
 internal void OnDataClick(object sender, ChartPoint point)
 {
     DataClick?.Invoke(sender, point);
 }