private void Ax_RangeChanged(LiveCharts.Events.RangeChangedEventArgs eventArgs) { Axis ax = (Axis)eventArgs.Axis; if (limitMax) { ax.MaxValue = AxisMax; } if (limitMin) { ax.MinValue = AxisMin; } }
/// <summary> /// Raises the <see cref="E:RangeChanged" /> event. /// </summary> /// <param name="e">The <see cref="RangeChangedEventArgs"/> instance containing the event data.</param> protected void OnRangeChanged(RangeChangedEventArgs e) { RangeChanged?.Invoke(e); }
/// <summary> /// Raises the <see cref="E:RangeChanged" /> event. /// </summary> /// <param name="e">The <see cref="RangeChangedEventArgs"/> instance containing the event data.</param> protected void OnRangeChanged(RangeChangedEventArgs e) { if (RangeChanged != null) RangeChanged.Invoke(e); }