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] Adding tabs to the TabViewItems after constructing it does not update Carousel #559

@adammeaney

Description

@adammeaney

Description

If you make a TabView that uses the TabItems property, not the TabItemsSource, you cannot add tabs at runtime and then navigate to them.

The tab strip updates, but the CarouselView does not add the new TabItem Content to its ItemsSource at any time.

Steps to Reproduce

  1. Make a page with TabItems
  2. Add an item using a button on the page
  3. Click the tab in the strip, see it not load the Content you expected.

Expected Behavior

Tabs can be added at runtime to the TabItems

Actual Behavior

Tabs are ignored at runtime, and only produce a tab strip item.

Basic Information

  • Version with issue: Commit 43b8dbd
  • Last known good version: Never
  • IDE: VS 2019 16.7.7
  • Platform Target Frameworks: Not relevant, Toolkit Forms code problem
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Workaround

Use TabItemsSource, as there are listeners that actually do real things on it. The code for UpdateTabItems doesn't touch the carousel.

Reproduction imagery

07073835-2B95-4C29-805F-684BC9A31E62

Reproduction Link

adammeaney@b7eb974

Metadata

Metadata

Assignees

Labels

a/TabViewbugSomething isn't working. Breaky break.in-progressActively being worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions