RangeBase.OnValueChanged(Double, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.