Open sandboxFocus

Method SetValue

SetValue(DependencyObject, T)

Sets the value of this attached property for a given object without changing its value source (see SetCurrentValue(DependencyProperty, Object)).

Declaration
public void SetValue(DependencyObject obj, T value)
Parameters
Type Name Description
DependencyObject obj

An object for which to set the property value.

T value

Value to be set.