Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
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 == 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);
        }