public RangeCalculator(NumericalAxisModel axis, bool userMin, bool userMax) { this.range = axis.actualRange; this.extendDirection = axis.extendDirection; this.userMin = userMin; this.userMax = userMax; this.Minimum = this.range.minimum; this.Maximum = this.range.maximum; }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local value first and then call base to raise the PropertyChanged event (if needed) if (e.Key == RangeExtendDirectionPropertyKey) { this.extendDirection = (NumericalAxisRangeExtendDirection)e.NewValue; } else if (e.Key == DesiredTickCountPropertyKey) { this.userTickCount = e.NewValue == null ? 0 : (int)e.NewValue; } base.OnPropertyChanged(e); }
protected NumericalAxisModel() { this.extendDirection = NumericalAxisRangeExtendDirection.Both; }