internal override void OnPropertyChanged(RadPropertyEventArgs e) { if (e.Key == AnglePropertyKey) { this.angle = (double)e.NewValue; } else if (e.Key == ValuePropertyKey) { this.value = (double)e.NewValue; this.isEmpty = DataPoint.CheckIsEmpty(this.value); } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local values first and then call base to raise the PropertyChanged event (if needed) if (e.Key == XValuePropertyKey) { this.xValue = (double)e.NewValue; } else if (e.Key == YValuePropertyKey) { this.yValue = (double)e.NewValue; this.isEmpty = DataPoint.CheckIsEmpty(this.yValue); } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local value first and then call base to raise the PropertyChanged event (if needed) if (e.Key == ValuePropertyKey) { this.value = (double)e.NewValue; this.isEmpty = DataPoint.CheckIsEmpty(this.value); // check whether the default label is used if (this.label == null) { this.RaisePropertyChanged(null, DataPoint.LabelPropertyKey); } } base.OnPropertyChanged(e); }