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.

TabViewItem Icon property issue #1242

Open
@ECDev01

Description

@ECDev01

I am trying to use Icons for my TabView. For that purpose I set only the property Icon in the TabViewItem but they were never displayed not even when I click the tabs. On the other hand when I use the property IconSelected and the Icon property together, images ARE displayed ONLY when I click/tap on the Tab.

Steps to Reproduce

Scenario when Icon property and IconSelected have values:

  1. xxxxx.png in drawable folder.
  2. Icon property set as xxxxx.png: Icon = "xxxxx.png"
  3. IconSelected property set as xxxxx.png: IconSelected = "xxxxx.png"
  4. Run app.

Expected Behavior

Icon displayed on Tabs

Actual Behavior

Icon is not displayed on Tabs. I can see only the text.

Basic Information

  • Version with issue: v1.1.0
  • Last known good version: N/A
  • IDE: Microsoft Visual Studio Professional 2019 Version 16.7.6
  • Platform Target Frameworks:
    • Android: 9.0
  • Nuget Packages: Xamarin Forms 5.0.0.1874
  • Affected Devices:
    Pixel 2 Pie 9.0 - API 28 (Emulator)
    Sony Xperia XZ Premium Pie 9.0 - API 28 (Physical device)

Reproduction imagery

image

After clicking on Documents Tab:
image

After clicking on FE Services Tab:
image

After clicking on Availability Tab:
image

After clicking all tabs Icons are displayed.

This is part of my XAML:
image

Metadata

Metadata

Assignees

Labels

a/TabViewbugSomething 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