-
Notifications
You must be signed in to change notification settings - Fork 8
How it works
David-Desmaisons edited this page Sep 29, 2014
·
4 revisions
When creating a binding, MVVM for awesomium will first use reflection to create a network of glue objects that map the viewmodel and create javascript object corresponding to the viewmodel.
Then the root javascript object is transformed via javascript method call (ko.MapToObersable) that
-creates a new object where all properties are mapped using ko.observable et ko.observableArray
-subscribes to javascript changes calling C# method when changes are detected
-maps javascript object: that is register them to the glue objects so that any glueobject knows its javascript homolog.
Once this is done, events are listened on the C# and javascript side and update are made when changes appear.
You need to dispose the binding to remove all the events listening.