C# Class Mvvm.Android.PageFactory

A class for triggering our UI parsing when changing pages
Datei anzeigen Open project: rhwilburn/MVVM-for-Mono

Public Methods

Method Description
PageFactory ( ViewBindingParser viewBindingParser ) : Android.App
PageFactory ( ViewTokenizer viewBindingParser, TokenWalker tokenWalker ) : System
TransitionToPage ( Android.App.Activity page ) : void

Move from one page to the next by unloading the bindings on the current page, then loading the new bindings.

TransitionToPage ( MemoryStream page ) : void

Move from one page to the next by unloading the bindings on the current page, then loading the new bindings.

Private Methods

Method Description
GetInstance ( Type type ) : IVisitor
Load ( Android.Views page ) : void

If the bindings for the page being loaded are not already cached, then 1) store the page we are on. 2) convert the xml UI into an element based object model representing the hierarchy and binding information of the UI. 3) parse the page being loaded by calling the parser and telling it to start. The parser will create the binding by calling the PageBindingFactory

Load ( MemoryStream page ) : void

If the bindings for the page being loaded are not already cached, then 1) store the page we are on. 2) convert the xml UI into an element based object model representing the hierarchy and binding information of the UI. 3) parse the page being loaded by calling the parser and telling it to start. The parser will create the binding by calling the PageBindingFactory

Unload ( ) : void

Put the bindings into an inactive state so that they are inactive while sitting in cache. 1) If there is no page currently then we can't unload the page. (No exception thrown)

Method Details

PageFactory() public method

public PageFactory ( ViewBindingParser viewBindingParser ) : Android.App
viewBindingParser Mvvm.Android.View.ViewBindingParser
return Android.App

PageFactory() public method

public PageFactory ( ViewTokenizer viewBindingParser, TokenWalker tokenWalker ) : System
viewBindingParser Mvvm.Android.View.ViewTokenizer
tokenWalker TokenWalker
return System

TransitionToPage() public method

Move from one page to the next by unloading the bindings on the current page, then loading the new bindings.
public TransitionToPage ( Android.App.Activity page ) : void
page Android.App.Activity
return void

TransitionToPage() public method

Move from one page to the next by unloading the bindings on the current page, then loading the new bindings.
public TransitionToPage ( MemoryStream page ) : void
page System.IO.MemoryStream
return void