PostSharp//API Reference/Post­Sharp.​Patterns.​Xaml/Attached<T>/Set­Value
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)).

public void SetValue([Required] DependencyObject obj, T value)
Type Name Description
DependencyObject obj

An object for which to set the property value.

T value

Value to be set.