22 public abstract class ActivityBase<T, Z> : Activity where T : ViewModel<Z>
38 protected override void OnCreate(Bundle bundle)
40 base.OnCreate(bundle);
60 return SerializationFormatterFactory.GetFormatter().Serialize(model);
70 return SerializationFormatterFactory.GetFormatter().Deserialize(parameter);
CSLA helper to be used in place of the normal Xamarin Android activity that contains a reference to a...
byte[] SerilizeModelForParameter()
Serializes the ViewModel's model property using the SerializationFormatterFactory....
object DeserializeFromParameter(byte[] parameter)
Takes a byte array and uses the MobileFormatter to reconstitute it into a model reference.
BindingManager Bindings
The BindingManager for this Activity.
T viewModel
A reference to the view model.
byte[] SerilizeModelForParameter(object model)
Serialized the provided model using the SerializationFormatterFactory.GetFormatter().
override void OnCreate(Bundle bundle)
Event that occurs when the activity is created.
Provides the ability to bing properties on Axml controls to properties on CSLA objects.