C# Class Spinnaker.Core.ViewModelManager

Show file Open project: Claytonious/spinnaker

Public Methods

Method Description
ActivateRootViewModel ( INotifyPropertyChanged viewModel, BrowserBridge browser ) : void
BindViewModel ( INotifyPropertyChanged viewModel, BrowserBridge browser ) : void
HandleScriptPropertyChanged ( string id, string propertyName, string newValue ) : void
InjectFramework ( StringBuilder sb ) : void
InvokeViewModelMethod ( string id, string methodName ) : void
InvokeViewModelMethod ( string id, string methodName, string arg ) : void
Reset ( ) : void
ViewModelManager ( ) : System

Private Methods

Method Description
GetViewModelDefinition ( Type viewModelType ) : ViewModelDefinition
GetViewModelInstance ( System.Guid id ) : ViewModelInstance
GetViewModelInstance ( INotifyPropertyChanged viewModel ) : ViewModelInstance
GetViewModelInstance ( string scriptId ) : ViewModelInstance
InstantiateInBrowser ( INotifyPropertyChanged instance, BrowserBridge browser ) : ViewModelInstance
IsViewModelDefinedInBrowser ( Type type ) : bool
RegisterViewModelDefinition ( Type viewModelType, ViewModelDefinition definition ) : void
ReleaseInBrowser ( System.Guid id ) : void
ReleaseInBrowser ( string scriptId ) : void
SetViewModelDefinedInBrowser ( Type type ) : void

Method Details

ActivateRootViewModel() public method

public ActivateRootViewModel ( INotifyPropertyChanged viewModel, BrowserBridge browser ) : void
viewModel INotifyPropertyChanged
browser BrowserBridge
return void

BindViewModel() public method

public BindViewModel ( INotifyPropertyChanged viewModel, BrowserBridge browser ) : void
viewModel INotifyPropertyChanged
browser BrowserBridge
return void

HandleScriptPropertyChanged() public method

public HandleScriptPropertyChanged ( string id, string propertyName, string newValue ) : void
id string
propertyName string
newValue string
return void

InjectFramework() public method

public InjectFramework ( StringBuilder sb ) : void
sb StringBuilder
return void

InvokeViewModelMethod() public method

public InvokeViewModelMethod ( string id, string methodName ) : void
id string
methodName string
return void

InvokeViewModelMethod() public method

public InvokeViewModelMethod ( string id, string methodName, string arg ) : void
id string
methodName string
arg string
return void

Reset() public method

public Reset ( ) : void
return void

ViewModelManager() public method

public ViewModelManager ( ) : System
return System