Fuse version 0.21.0 (build 6612) Windows 10
The problem is that binding an observable to the Active
of PageControl
doesn’t update the observable when swiping. Here’s an example:
<App>
<JavaScript>
var Observable = require("FuseJS/Observable");
var currentPage = Observable("second");
module.exports = {
currentPage:currentPage
}
</JavaScript>
<DockPanel>
<Text Dock="Top" Value="{currentPage}" />
<PageControl Active="{currentPage}">
<Page ux:Name="first" Background="#F00" />
<Page ux:Name="second" Background="#0F0" />
<Page ux:Name="third" Background="#00F" />
</PageControl>
</DockPanel>
</App>
If you run this you’ll see that even though the page switches, and even though the ux responds observable starts off at the second page, it doesn’t update the title text (or the js) when you swipe between pages.