Contains an individual binding to tie a property on an Axml view to the property on a supplied object. More...
Public Member Functions | |
| Binding (UIView target, string targetProperty, object source, string sourceProperty, BindingDirection bindingDirection) | |
| Creates a new instance of the Binding class. More... | |
| Binding (UIView target, string targetProperty, object source, string sourceProperty, Func< object, object > convert, BindingDirection bindingDirection) | |
| Creates a new instance of the Binding class. More... | |
| Binding (UIView target, string targetProperty, object source, string sourceProperty, Func< object, object > convert, Func< object, object > convertBack, BindingDirection bindingDirection) | |
| Creates a new instance of the Binding class. More... | |
| void | UpdateSource () |
| Updates the source with the current value in the target object. More... | |
| void | UpdateTarget () |
| Updates the target with the current value in the source object. More... | |
| void | Dispose () |
| Clears the bindings, references and event handlers. More... | |
Properties | |
| BindingDirection | BindingDirection [get] |
| Indicates if this is read only or two way binding. More... | |
| UIView | Target [get] |
| The iOS view that is used by the binding. More... | |
| object | Source [get] |
| The object that the view is bound to. More... | |
| System.Reflection.PropertyInfo | TargetProperty [get] |
| The PropertyInfo for the property on the target view that is being bound to. More... | |
| System.Reflection.PropertyInfo | SourceProperty [get] |
| The PropertyInfo for the property on the source object that is being bound to. More... | |
| Func< object, object > | Convert [get] |
| A reference to a function to do a custom conversion from the source property to the target property. More... | |
| Func< object, object > | ConvertBack [get] |
| A reference to a function to do a custom conversion from the target property to the source property. More... | |
Contains an individual binding to tie a property on an Axml view to the property on a supplied object.
Definition at line 24 of file Csla.Iosui.Ios/Binding/Binding.cs.
| Csla.Iosui.Binding.Binding.Binding | ( | UIView | target, |
| string | targetProperty, | ||
| object | source, | ||
| string | sourceProperty, | ||
| BindingDirection | bindingDirection | ||
| ) |
Creates a new instance of the Binding class.
| target | A reference to the control to bind to. |
| targetProperty | The name of the property on the view to bind to. |
| source | A reference to the object that will be bound to the control. |
| sourceProperty | The name of the property on the object that will be bound to the target property. |
| bindingDirection | Indicates if the binding is one way or two way. |
Definition at line 69 of file Csla.Iosui.Ios/Binding/Binding.cs.
| Csla.Iosui.Binding.Binding.Binding | ( | UIView | target, |
| string | targetProperty, | ||
| object | source, | ||
| string | sourceProperty, | ||
| Func< object, object > | convert, | ||
| BindingDirection | bindingDirection | ||
| ) |
Creates a new instance of the Binding class.
| target | A reference to the control to bind to. |
| targetProperty | The name of the property on the view to bind to. |
| source | A reference to the object that will be bound to the control. |
| sourceProperty | The name of the property on the object that will be bound to the target property. |
| convert | A reference to a function to do a custom conversion from the source property to the target property. |
| bindingDirection | Indicates if the binding is one way or two way. |
Definition at line 82 of file Csla.Iosui.Ios/Binding/Binding.cs.
| Csla.Iosui.Binding.Binding.Binding | ( | UIView | target, |
| string | targetProperty, | ||
| object | source, | ||
| string | sourceProperty, | ||
| Func< object, object > | convert, | ||
| Func< object, object > | convertBack, | ||
| BindingDirection | bindingDirection | ||
| ) |
Creates a new instance of the Binding class.
| target | A reference to the control to bind to. |
| targetProperty | The name of the property on the view to bind to. |
| source | A reference to the object that will be bound to the control. |
| sourceProperty | The name of the property on the object that will be bound to the target property. |
| convert | A reference to a function to do a custom conversion from the source property to the target property. |
| convertBack | A reference to a function to do a custom conversion from the target property to the source property. |
| bindingDirection | Indicates if the binding is one way or two way. |
Definition at line 96 of file Csla.Iosui.Ios/Binding/Binding.cs.
| void Csla.Iosui.Binding.Binding.Dispose | ( | ) |
Clears the bindings, references and event handlers.
Definition at line 176 of file Csla.Iosui.Ios/Binding/Binding.cs.
| void Csla.Iosui.Binding.Binding.UpdateSource | ( | ) |
Updates the source with the current value in the target object.
Uses the ConvertBack function to convert the data if available.
Definition at line 144 of file Csla.Iosui.Ios/Binding/Binding.cs.
| void Csla.Iosui.Binding.Binding.UpdateTarget | ( | ) |
Updates the target with the current value in the source object.
Uses the Convert function to convert the data if available.
Definition at line 161 of file Csla.Iosui.Ios/Binding/Binding.cs.
|
get |
Indicates if this is read only or two way binding.
Definition at line 29 of file Csla.Iosui.Ios/Binding/Binding.cs.
|
get |
A reference to a function to do a custom conversion from the source property to the target property.
Definition at line 54 of file Csla.Iosui.Ios/Binding/Binding.cs.
|
get |
A reference to a function to do a custom conversion from the target property to the source property.
Definition at line 59 of file Csla.Iosui.Ios/Binding/Binding.cs.
|
get |
The object that the view is bound to.
Definition at line 39 of file Csla.Iosui.Ios/Binding/Binding.cs.
|
get |
The PropertyInfo for the property on the source object that is being bound to.
Definition at line 49 of file Csla.Iosui.Ios/Binding/Binding.cs.
|
get |
The iOS view that is used by the binding.
Definition at line 34 of file Csla.Iosui.Ios/Binding/Binding.cs.
|
get |
The PropertyInfo for the property on the target view that is being bound to.
Definition at line 44 of file Csla.Iosui.Ios/Binding/Binding.cs.