Configure bindings. More...
Public Member Functions | |
Binding | CreateBinding (Property property, AnimationTargetPropertyAttributeEnum attribute, string code) |
Creates and configures a binding. More... | |
Binding | CreateBinding (Binding sourceBinding) |
Creates a binding by copying an existing binding. More... | |
void | DeleteBinding (Binding binding) |
Deletes a binding. More... | |
Properties | |
IEnumerable< Binding > | Bindings [get] |
Gets the bindings in a BindingHost. More... | |
Configure bindings.
This class represents a binding host which can have bindings.
Use bindings to update properties or property attributes of one node with the properties or property attributes of other nodes. Bindings allow nodes to automatically update the values of their properties in response to the changing attributes in other nodes or the occurrence of some external event.
Binding CreateBinding | ( | Property | property, |
AnimationTargetPropertyAttributeEnum | attribute, | ||
string | code | ||
) |
Creates and configures a binding.
property | The property that you want to bind. |
attribute | The property field that you want to bind. |
code | The binding expression. |
Examples
To create a binding:
Creates a binding by copying an existing binding.
sourceBinding | The binding you want to copy to create a new binding. |
Examples
To create a binding from an existing binding:
void DeleteBinding | ( | Binding | binding | ) |
Deletes a binding.
binding | The binding you want to delete. |
Examples
To delete a binding:
|
get |
Gets the bindings in a BindingHost.
Examples
To get the bindings in a node: