<Page loaded="pageLoaded">
  <Page.actionBar>
    <ActionBar title="Title">
      <ActionBar.titleView>
        <SegmentedBar selectedIndex="{{ index }}">
          <SegmentedBar.items>
            <SegmentedBarItem title="Item 1" />
            <SegmentedBarItem title="Item 2" />
            <SegmentedBarItem title="Item 3" />
          </SegmentedBar.items>
        </SegmentedBar>
      </ActionBar.titleView>
    </ActionBar>
  </Page.actionBar>
  <StackLayout>
    <Button text="{{ index }}" />
  </StackLayout>
</Page>