Sets the binding if the dependency property has not been set previously and the style of the element don't set the property.

Namespace:  C1.Xaml
Assembly:  C1.Xaml (in C1.Xaml.dll)

Syntax

C#
[ObsoleteAttribute("Use generic overload instead in order to check sourceProperty existence at compilation time.", 
	true)]
public static void SetBinding(
	this FrameworkElement target,
	DependencyProperty dp,
	Object source,
	string sourcePropertyName
)
Visual Basic
<ObsoleteAttribute("Use generic overload instead in order to check sourceProperty existence at compilation time.",  _
	True)> _
<ExtensionAttribute> _
Public Shared Sub SetBinding ( _
	target As FrameworkElement, _
	dp As DependencyProperty, _
	source As Object, _
	sourcePropertyName As String _
)

Parameters

target
Type: FrameworkElement
The target.
dp
Type: DependencyProperty
The dependency property which will be set.
source
Type: System..::..Object
The source.
sourcePropertyName
Type: System..::..String
Name of the source property.

See Also