Exemplo n.º 1
0
 internal void OnDataClick(object sender, ChartPoint point)
 {
     if (DataClick != null)
     {
         DataClick.Invoke(sender, point);
     }
 }
Exemplo n.º 2
0
 public CartesianChart()
 {
     Child              = WpfBase;
     WpfBase.DataClick += (o, point) =>
     {
         if (DataClick != null)
         {
             DataClick.Invoke(o, point);
         }
     };
 }
Exemplo n.º 3
0
 public PieChart()
 {
     Child            = Chart;
     Chart.DataClick += (o, point) =>
     {
         if (DataClick != null)
         {
             DataClick.Invoke(o, point);
         }
     };
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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();
     }
 }
Exemplo n.º 6
0
 internal void OnDataClick(object sender, ChartPoint point)
 {
     DataClick?.Invoke(sender, point);
 }