Hi,
I want to dim_value
value greater than 0 if the switch on
. The following code does not work. Do you have any idea?
<App Background="#A64942">
<JavaScript>
var Observable = require("FuseJS/Observable");
var data = Observable(
{name: "foo", dim_value: 0},
{name: "bar", dim_value: 43});
module.exports = {
data: data
};
</JavaScript>
<ScrollViewer>
<StackPanel>
<Each Items="{data}">
<Panel>
<Text Value="{name}" />
<WhileFloat GreaterThan="1" LessThan="255" Value="{dim_value}">
<Switch Value="true" />
</WhileFloat>
</Panel>
</Each>
</StackPanel>
</ScrollViewer>
</App>