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