bind_property


Description:

[ CCode ( cname = "g_binding_group_bind_with_closures" ) ]
public void bind_property (string source_property, Object target, string target_property, BindingFlags flags, owned BindingTransformFunc? transform_to = null, owned BindingTransformFunc? transform_from = null)

Creates a binding between source_property on the source object and target_property on target, allowing you to set the transformation functions to be used by the binding.

The binding flag g_binding_sync_create is automatically specified.

This function is the language bindings friendly version of g_binding_group_bind_property_full, using Closures instead of function pointers.

See bind_property for more information.

Parameters:

this

the BindingGroup

source_property

the property on the source to bind

target

the target Object

target_property

the property on target to bind

flags

the flags used to create the Binding

transform_to

a Closure wrapping the transformation function from the source object to the target, or null to use the default

transform_from

a Closure wrapping the transformation function from the target to the source object, or null to use the default