C# Class Mvvm.Android.Bindings.PageBindingFactory

Add a single binding to the list of bindings for a page. This class will enable caching of bindings by page.
Inheritance: Java.Lang.Object, LayoutInflater.IFactory
Datei anzeigen Open project: rhwilburn/MVVM-for-Mono

Public Methods

Method Description
Add ( Android.Views view, Binding binding, IElement element ) : void

Add a single binding for any page to the list of cached bindings.

Bind ( ) : void
CreateInstancesForPage ( Android.Views page ) : void

The page that we want to create instances for. 1) freeze or GC old binding instances for the current and soon to be previous page. 2) generate and cache all of our new bindings

OnCreateView ( string name, Android.Content.Context context, IAttributeSet attrs ) : global::Android.Views.View
PageBindingFactory ( Android.Views.LayoutInflater layoutInflater, Node rootNode, IViewModel viewModel ) : System

Private Methods

Method Description
ClearCurrentBindings ( ) : void
FindNodeWithId ( Node node, string id ) : Node
_viewModel_PropertyChanged ( object sender, System e ) : void

Method Details

Add() public method

Add a single binding for any page to the list of cached bindings.
public Add ( Android.Views view, Binding binding, IElement element ) : void
view Android.Views
binding MonoMobile.Views.Binding
element IElement
return void

Bind() public method

public Bind ( ) : void
return void

CreateInstancesForPage() public method

The page that we want to create instances for. 1) freeze or GC old binding instances for the current and soon to be previous page. 2) generate and cache all of our new bindings
public CreateInstancesForPage ( Android.Views page ) : void
page Android.Views
return void

OnCreateView() public method

public OnCreateView ( string name, Android.Content.Context context, IAttributeSet attrs ) : global::Android.Views.View
name string
context Android.Content.Context
attrs IAttributeSet
return global::Android.Views.View

PageBindingFactory() public method

public PageBindingFactory ( Android.Views.LayoutInflater layoutInflater, Node rootNode, IViewModel viewModel ) : System
layoutInflater Android.Views.LayoutInflater
rootNode Node
viewModel IViewModel
return System