Rediger

Del via


RangeBase.OnValueChanged(Double, Double) Method

Definition

Raises the ValueChanged routed event.

protected:
 virtual void OnValueChanged(double oldValue, double newValue);
protected virtual void OnValueChanged (double oldValue, double newValue);
abstract member OnValueChanged : double * double -> unit
override this.OnValueChanged : double * double -> unit
Protected Overridable Sub OnValueChanged (oldValue As Double, newValue As Double)

Parameters

oldValue
Double

Old value of the Value property.

newValue
Double

New value of the Value property.

Remarks

Subclasses of the RangeBase can use this method to respond when the value property changes instead of overriding the FrameworkPropertyMetadata to provide a new PropertyChangedCallback function. For more information, see Dependency Property Callbacks and Validation.

The OnValueChanged method raises the ValueChanged event. When overriding OnValueChanged in a derived class, be sure to call the base class' OnValueChanged method so that registered delegates receive the event.

Applies to