Sets the local value of a dependency property on a
System.Windows.DependencyObject.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Sub SetValue( _
ByVal dp As System.Windows.DependencyProperty, _
ByVal value As System.Object _
) |
| C# | |
|---|
public void SetValue(
System.Windows.DependencyProperty dp,
System.object value
) |
Parameters
- dp
- The identifier of the dependency property to set.
- value
- The new local value.
Exceptions
| Exception | Description |
| System.ArgumentException | value was not the correct type as registered for the dp property. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also