Provides the ability to bing properties on Axml controls to properties on CSLA objects. More...
Public Member Functions | |
BindingManager (Activity activity) | |
Creates a new instance of the binding manager. More... | |
void | Add (int viewId, string targetProperty, object source, string sourceProperty) |
Adds a new binding to be managed. More... | |
void | Add (View target, string targetProperty, object source, string sourceProperty) |
Adds a new binding to be managed. More... | |
void | Add (Binding binding) |
Adds a new binding to be managed. More... | |
void | Remove (View target, string targetProperty, object source, string sourceProperty) |
Removes the binding matching the supplied parameters from the binding manager. More... | |
void | Remove (Binding binding) |
Removes the supplied binding from the binding manager. More... | |
void | RemoveAll () |
Removes all bindings from the binding manager. More... | |
IEnumerable< Binding > | GetBindingsForView (View view) |
Returns all bindings for the supplied view. More... | |
void | UpdateSourceForView (View view) |
Updates bindings with the current values in the supplied view. More... | |
void | UpdateSourceForLastView () |
Updates bindings on the view that is in current focus on the activity supplied to the BindingManager. More... | |
Properties | |
List< Binding > | Bindings [get] |
A list of bindings that have been added to the manager. More... | |
Provides the ability to bing properties on Axml controls to properties on CSLA objects.
Bindinds update normally when the control looses focus.
Definition at line 20 of file Csla.Axml.Android/Binding/BindingManager.cs.
Csla.Axml.Binding.BindingManager.BindingManager | ( | Activity | activity | ) |
Creates a new instance of the binding manager.
activity | The Android activity that is using the view with the controls to bind to. |
Definition at line 28 of file Csla.Axml.Android/Binding/BindingManager.cs.
void Csla.Axml.Binding.BindingManager.Add | ( | Binding | binding | ) |
Adds a new binding to be managed.
binding | The new binding to add. |
Definition at line 68 of file Csla.Axml.Android/Binding/BindingManager.cs.
void Csla.Axml.Binding.BindingManager.Add | ( | int | viewId, |
string | targetProperty, | ||
object | source, | ||
string | sourceProperty | ||
) |
Adds a new binding to be managed.
viewId | The id of 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 46 of file Csla.Axml.Android/Binding/BindingManager.cs.
void Csla.Axml.Binding.BindingManager.Add | ( | View | target, |
string | targetProperty, | ||
object | source, | ||
string | sourceProperty | ||
) |
Adds a new binding to be managed.
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 59 of file Csla.Axml.Android/Binding/BindingManager.cs.
IEnumerable< Binding > Csla.Axml.Binding.BindingManager.GetBindingsForView | ( | View | view | ) |
Returns all bindings for the supplied view.
view | A reference to the view to return bindings for. |
Definition at line 117 of file Csla.Axml.Android/Binding/BindingManager.cs.
void Csla.Axml.Binding.BindingManager.Remove | ( | Binding | binding | ) |
Removes the supplied binding from the binding manager.
binding | The binding to remove. |
Definition at line 95 of file Csla.Axml.Android/Binding/BindingManager.cs.
void Csla.Axml.Binding.BindingManager.Remove | ( | View | target, |
string | targetProperty, | ||
object | source, | ||
string | sourceProperty | ||
) |
Removes the binding matching the supplied parameters from the binding manager.
If no bindings matched the method does nothing.
target | A reference to the bound control. |
targetProperty | The name of the property on the view that is bound to. |
source | A reference to the object that is bound to. |
sourceProperty | The name of the property on the object that that is bound to the target property. |
Definition at line 81 of file Csla.Axml.Android/Binding/BindingManager.cs.
void Csla.Axml.Binding.BindingManager.RemoveAll | ( | ) |
Removes all bindings from the binding manager.
Definition at line 104 of file Csla.Axml.Android/Binding/BindingManager.cs.
void Csla.Axml.Binding.BindingManager.UpdateSourceForLastView | ( | ) |
Updates bindings on the view that is in current focus on the activity supplied to the BindingManager.
Definition at line 135 of file Csla.Axml.Android/Binding/BindingManager.cs.
void Csla.Axml.Binding.BindingManager.UpdateSourceForView | ( | View | view | ) |
Updates bindings with the current values in the supplied view.
view | The view to update bindings for. |
Definition at line 126 of file Csla.Axml.Android/Binding/BindingManager.cs.
|
get |
A list of bindings that have been added to the manager.
Definition at line 37 of file Csla.Axml.Android/Binding/BindingManager.cs.