Xamarin.Forms-IconTabbedPage
1.0.0
See the version list below for details.
dotnet add package Xamarin.Forms-IconTabbedPage --version 1.0.0
NuGet\Install-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
#r "nuget: Xamarin.Forms-IconTabbedPage, 1.0.0"
// Install Xamarin.Forms-IconTabbedPage as a Cake Addin
#addin nuget:?package=Xamarin.Forms-IconTabbedPage&version=1.0.0
// Install Xamarin.Forms-IconTabbedPage as a Cake Tool
#tool nuget:?package=Xamarin.Forms-IconTabbedPage&version=1.0.0
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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid10 is compatible. |
Xamarin.iOS | xamarinios10 is compatible. |
-
- Xamarin.Forms (>= 2.3.0.49)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.