Class BindingOperations
Provides the static SetBinding(DependencyObject, DependencyProperty, Binding) method.
Inheritance
System.Object
BindingOperations
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Data
Assembly: OpenSilver.dll
Syntax
public static class BindingOperations
Methods
| Improve this Doc View SourceGetBindingExpression(DependencyObject, DependencyProperty)
Declaration
public static BindingExpression GetBindingExpression(DependencyObject target, DependencyProperty dp)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | target | |
DependencyProperty | dp |
Returns
Type | Description |
---|---|
BindingExpression |
SetBinding(DependencyObject, DependencyProperty, Binding)
Creates and associates a new BindingExpression with the specified binding target property.
Declaration
public static BindingExpression SetBinding(DependencyObject target, DependencyProperty dp, Binding binding)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | target | The target to set the binding to. |
DependencyProperty | dp | The property on the target to bind. |
Binding | binding | The binding to assign to the target property. |
Returns
Type | Description |
---|---|
BindingExpression | An object that contains information about the binding. |