RangeBaseAutomationPeer.SetValue methods

Sets the value of a control.

Overload list

MethodDescription
SetValue(Double) Sets the value of the control, as an implementation of the IValueProvider pattern.
SetValue(DependencyProperty, Object) Sets the local value of a dependency property on a DependencyObject.

Remarks

RangeBaseAutomationPeer defines a method SetValue(Double), which is a method that implements the IRangeValueProvider automation pattern. This method is the primary SetValue method that is useful for UI Automation scenarios. However, because the UI Automation peers also inherit the base class DependencyObject, there is another method named SetValue that has an entirely different purpose. This is not a case of the automation peer deliberately overloading the base DependencyObject implementation. Rather, it is a coincidental name collision, and an implementation detail. For most UI Automation scenarios, you should ignore the DependencyObject version of SetValue and always use the RangeBaseAutomationPeer-defined SetValue(Double).

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Automation.Peers
Windows::UI::Xaml::Automation::Peers [C++]

Metadata

Windows.winmd

See also

RangeBaseAutomationPeer

 

 

Build date: 12/4/2012

Show:
© 2015 Microsoft