RangeBase.OnValueChanged Method (Double, Double)

 

Raises the ValueChanged routed event.

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

abstract OnValueChanged : 
        oldValue:float *
        newValue:float -> unit
override OnValueChanged : 
        oldValue:float *
        newValue:float -> unit

Parameters

oldValue
Type: System.Double

Old value of the Value property

newValue
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
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: