Skip to content

[iOS] SelectedIndex property of the TabView widget does not work #1028

Closed

Description

@vchimev

SelectedIndex property of the TabView widget does not work properly on iOS. For example, if you have two TabView items and want to set selectedIndex="1":

  • in the xml file - when TabView shown the first (not the second one) item will be selected,
  • in the js/ts file - when TabView shown, initially the first item will be selected, then the second one as a consequence.

Sample page:

<Page>
  <TabView selectedIndex="1" id="tabView">
    <TabView.items>
      <TabViewItem title="First">
        <TabViewItem.view>
          <GridLayout>
            <Label text="First View" verticalAlignment="center" horizontalAlignment="center"/>
          </GridLayout>
        </TabViewItem.view>
      </TabViewItem>
      <TabViewItem title="Second">
        <TabViewItem.view>
          <GridLayout>
            <Label text="Second View" verticalAlignment="center" horizontalAlignment="center"/>
          </GridLayout>
        </TabViewItem.view>
      </TabViewItem>
    </TabView.items>
  </TabView>
</Page>

Activity

  1. added this to the milestone on Nov 3, 2015
  2. self-assigned this
    on Nov 9, 2015
  3. modified the milestones: 1.5, on Nov 9, 2015
  4. lock commented on Aug 30, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  5. locked and limited conversation to collaborators on Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions