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
Description
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:
- xxxxx.png in drawable folder.
- Icon property set as xxxxx.png: Icon = "xxxxx.png"
- IconSelected property set as xxxxx.png: IconSelected = "xxxxx.png"
- 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
After clicking on Documents Tab:
After clicking on FE Services Tab:
After clicking on Availability Tab:
After clicking all tabs Icons are displayed.