C# 클래스 Mvvm.Android.PageFactory

A class for triggering our UI parsing when changing pages
파일 보기 프로젝트 열기: rhwilburn/MVVM-for-Mono

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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)

메소드 상세

PageFactory() 공개 메소드

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

PageFactory() 공개 메소드

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

TransitionToPage() 공개 메소드

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
리턴 void

TransitionToPage() 공개 메소드

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
리턴 void