CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Iosui.ViewControllerBase< T, Z > Class Template Reference

CSLA helper to be used in place of the normal Xamarin Android activity that contains a reference to a CSLA ViewModel and a BindingManager. More...

Inheritance diagram for Csla.Iosui.ViewControllerBase< T, Z >:

Protected Member Functions

byte[] SerilizeModelForParameter ()
 Serializes the ViewModel's model property using the SerializationFormatterFactory.GetFormatter(). More...
 
byte[] SerilizeModelForParameter (object model)
 Serialized the provided model using the SerializationFormatterFactory.GetFormatter(). More...
 
object DeserializeFromParameter (byte[] parameter)
 Takes a byte array and uses the MobileFormatter to reconstitute it into a model reference. More...
 

Protected Attributes

viewModel = null
 A reference to the view model. More...
 
BindingManager Bindings = null
 The BindingManager for this Activity. More...
 

Detailed Description

CSLA helper to be used in place of the normal Xamarin Android activity that contains a reference to a CSLA ViewModel and a BindingManager.

Template Parameters
TA type that inherits from the ViewModel.
ZThe type that is defined as used by T.
Type Constraints
T :ViewModel<Z> 

Definition at line 25 of file ViewControllerBase.cs.

Member Function Documentation

◆ DeserializeFromParameter()

object Csla.Iosui.ViewControllerBase< T, Z >.DeserializeFromParameter ( byte[]  parameter)
protected

Takes a byte array and uses the MobileFormatter to reconstitute it into a model reference.

Parameters
parameterAn array of bytes to deserialized.
Returns
A reference to the deserialized object. An exception will be thrown if the supplied byte array is not valid for deserializaiton.

Definition at line 61 of file ViewControllerBase.cs.

◆ SerilizeModelForParameter() [1/2]

byte[] Csla.Iosui.ViewControllerBase< T, Z >.SerilizeModelForParameter ( )
protected

Serializes the ViewModel's model property using the SerializationFormatterFactory.GetFormatter().

Used to serialize and transfer models between activities.

Returns
An array of bytes that contains the serialized model.

Definition at line 41 of file ViewControllerBase.cs.

◆ SerilizeModelForParameter() [2/2]

byte[] Csla.Iosui.ViewControllerBase< T, Z >.SerilizeModelForParameter ( object  model)
protected

Serialized the provided model using the SerializationFormatterFactory.GetFormatter().

Used to serialize and transfer models between activities.

Parameters
modelA reference to the model to serialize.
Returns
An array of bytes that contains the serialized model.

Definition at line 51 of file ViewControllerBase.cs.

Member Data Documentation

◆ Bindings

BindingManager Csla.Iosui.ViewControllerBase< T, Z >.Bindings = null
protected

The BindingManager for this Activity.

Definition at line 35 of file ViewControllerBase.cs.

◆ viewModel

T Csla.Iosui.ViewControllerBase< T, Z >.viewModel = null
protected

A reference to the view model.

Definition at line 30 of file ViewControllerBase.cs.