Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
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.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Please sign in to use this experience.
Sign in