Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RangeBase.OnValueChanged Method (Double, Double)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Raises the ValueChanged routed event.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected virtual void OnValueChanged(
	double oldValue,
	double newValue


Type: System.Double

Old value of the Value property

Type: System.Double

New value of the Value property

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’s OnValueChanged method so that registered delegates receive the event.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2018 Microsoft