Пример #1
0
            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;
            }
Пример #2
0
        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);
        }
Пример #3
0
 protected NumericalAxisModel()
 {
     this.extendDirection = NumericalAxisRangeExtendDirection.Both;
 }