Skip to content
Bartłomiej Wołk edited this page Jul 19, 2015 · 13 revisions

Scene Properties

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.

Update methods

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.

Resources

uFrame 1.5 - Scene Properties Youtube Video

Clone this wiki locally