-
Notifications
You must be signed in to change notification settings - Fork 117
Scene Properties
Bartłomiej Wołk edited this page Jul 19, 2015
·
13 revisions
Sometimes there's a need to update ViewModel's property directly from a View. In such case you can create a Scene Property.
In order to create a Scene Property, create a normal property on an Element and then connect it to the View.
[picture]
After recompilation, uFrame will add to the View new methods that allow to update the Scene Property.
Calculate{PropertyName}
Get{PropertyName}Observable
This method returns an observable so you can use it to control when/how often the Scene Property gets updated and with what values.
[example]
If this method is implemented then the Calculate{PropertyName}
won't be called.