Click or drag to resize

ExtensionsSetBinding Method

Attaches a binding to a FrameworkElement, using the provided binding object.

Namespace:  Cauldron.XAML
Assembly:  Cauldron.Win32.WPF (in Cauldron.Win32.WPF.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static Binding SetBinding(
	this FrameworkElement element,
	DependencyProperty dp,
	Object source,
	PropertyPath path,
	BindingMode mode
)

Parameters

element
Type: System.WindowsFrameworkElement
The FrameworkElement that is binded to
dp
Type: System.WindowsDependencyProperty
The dependency property identifier of the property that is data bound.
source
Type: SystemObject
The data source for the binding.
path
Type: System.WindowsPropertyPath
The path to the binding source property.
mode
Type: System.Windows.DataBindingMode
Indicates the direction of the data flow in the binding.

Return Value

Type: Binding
The binding that is used for the property.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FrameworkElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also