A Xamarin CustomRenderer that render Icon for TabbedPage for iOS & Android, using Icon property on child pages.
Use IconTabbedPage class instead of TabbedPage class, and add the name of your static image resource on the "Icon" property of your childs pages, eg. "user_icon.png", and it will be loaded and show instead of the tab text.
The behavior of this class is at constructor level, so i strongly advise you to configure your class and childs pages using your own inherited class of IconTabbedPage, or by initializing your content from a XAML context.
Default colors may not be accurate to your needs. In addition of the standards properties used on TabbedPage like "BarBackgroundColor" and "BarTextColor", IconTabbedPage expose a "UnselectedTextColor" in order to override the filled color of your Icon when a Tab is unselected.
This plugin is highly inspired from solutions founds on the Xamarin forum, thanks to all contributors.
See the version list below for details.
Install-Package Xamarin.Forms-IconTabbedPage -Version 1.0.0
dotnet add package Xamarin.Forms-IconTabbedPage --version 1.0.0
<PackageReference Include="Xamarin.Forms-IconTabbedPage" Version="1.0.0" />
paket add Xamarin.Forms-IconTabbedPage --version 1.0.0
- Xamarin.Forms (>= 220.127.116.11)
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.