Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] TabView SelectedIndex Binding does not work #870

@acaliaro

Description

@acaliaro

Description

                <xct:TabView
                    BackgroundColor="White"
                    SelectedIndex="{Binding SelectedTabViewIndex}"
                    SelectionChanged="TabView_SelectionChanged">


I have a TabView with 2 TabViewItem. I set a SelectedTabViewIndex binding with SelectedIndex, and SelectionChanged event.

I see that TabView_SelectionChanged is called and NewValue and OldValue change, but SelectedTabViewIndex is always 1:

[0:] MainPage: TabView_SelectionChanged new: 1 - old: 0
[0:] MainPage: TabView_SelectionChanged: SelectedTabViewIndex: 1
[0:] MainPage: TabView_SelectionChanged new: 0 - old: 1
[0:] MainPage: TabView_SelectionChanged: SelectedTabViewIndex: 1

Steps to Reproduce

See the attached repo

Expected Behavior

SelectedIndex binding should change the binded value

Actual Behavior

Binded value does not change

Basic Information

  • Version with issue: 1.1.0-preview1009
  • Last known good version: unknown
  • IDE: Visual Studio 2019 16.8.4
  • Platform Target Frameworks:
    • iOS:
    • Android: 10
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Workaround

Reproduction imagery

Reproduction Link

TestFody.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. Breaky break.s/unverifiedThis issue needs verification/reproduction by a team member. PRs cannot be accepted/merged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions