Contains an individual binding to tie a property on an Axml view to the property on a supplied object. More...
Public Member Functions | |
Binding (View target, string targetProperty, object source, string sourceProperty) | |
Creates a new instance of the Binding class. More... | |
Binding (View target, string targetProperty, object source, string sourceProperty, Func< object, object > convert) | |
Creates a new instance of the Binding class. More... | |
Binding (View target, string targetProperty, object source, string sourceProperty, Func< object, object > convert, Func< object, object > convertBack) | |
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 | |
View | Target [get] |
The Axml 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 18 of file Csla.Axml.Android/Binding/Binding.cs.
Csla.Axml.Binding.Binding.Binding | ( | View | target, |
string | targetProperty, | ||
object | source, | ||
string | sourceProperty | ||
) |
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. |
Definition at line 57 of file Csla.Axml.Android/Binding/Binding.cs.
Csla.Axml.Binding.Binding.Binding | ( | View | target, |
string | targetProperty, | ||
object | source, | ||
string | sourceProperty, | ||
Func< object, object > | convert | ||
) |
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. |
Definition at line 69 of file Csla.Axml.Android/Binding/Binding.cs.
Csla.Axml.Binding.Binding.Binding | ( | View | target, |
string | targetProperty, | ||
object | source, | ||
string | sourceProperty, | ||
Func< object, object > | convert, | ||
Func< object, object > | convertBack | ||
) |
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. |
Definition at line 82 of file Csla.Axml.Android/Binding/Binding.cs.
void Csla.Axml.Binding.Binding.Dispose | ( | ) |
Clears the bindings, references and event handlers.
Definition at line 154 of file Csla.Axml.Android/Binding/Binding.cs.
void Csla.Axml.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 124 of file Csla.Axml.Android/Binding/Binding.cs.
void Csla.Axml.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 139 of file Csla.Axml.Android/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 43 of file Csla.Axml.Android/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 48 of file Csla.Axml.Android/Binding/Binding.cs.
|
get |
The object that the view is bound to.
Definition at line 28 of file Csla.Axml.Android/Binding/Binding.cs.
|
get |
The PropertyInfo for the property on the source object that is being bound to.
Definition at line 38 of file Csla.Axml.Android/Binding/Binding.cs.
|
get |
The Axml view that is used by the binding.
Definition at line 23 of file Csla.Axml.Android/Binding/Binding.cs.
|
get |
The PropertyInfo for the property on the target view that is being bound to.
Definition at line 33 of file Csla.Axml.Android/Binding/Binding.cs.