Plugin.ProXamTabs 1.5.7

ProXamTabs Plugin for Xamarin and Windows

Plugin Description

Install-Package Plugin.ProXamTabs -Version 1.5.7
dotnet add package Plugin.ProXamTabs --version 1.5.7
<PackageReference Include="Plugin.ProXamTabs" Version="1.5.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Plugin.ProXamTabs --version 1.5.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

PXTabs

  • A tab layout that is more customizable and easier to use than trying to implement the native layouts.
  • Written entirely in Forms with no native code.
  • Check out the TabsPage in the examples for implementation.

NuGet

https://www.nuget.org/packages/Plugin.ProXamTabs

Implementation

All properties are bindable.

PXTabsView

  1. If implementing in Xaml, add the namespace xmlns:pxTabs=&quot;clr-namespace:Plugin.ProXamTabs.Shared;assembly=Plugin.ProXamTabs&quot;&quot;.
  2. Add the view to your page, set the tab bar on top or bottom by setting IsTabBarOnTop:
<pxTabs:PXTabsView
    x:Name="tabsView"
    BorderColor="Teal"
    SliderColor="Teal"
    IsBorderOnBottom="False"
    IsBorderVisible="True"
    IsSliderOnBottom="False"
    IsSliderVisible="True"
    IsTabBarOnTop="False"/>
  1. Create a list of PXTabs and and them to the tab view: tabsView.Tabs = [YourListOfTabs];, or bind the list directly. The PXTab is fully customisable:
new PXTab()
{
    TabId = 1,
    TabView = new HomeView(),
    Text = "Home",
    SelectedImage = "tab_home",
    UnselectedImage = "tab_home_gray",
    SelectedColor = Color.Gray,
    UnSelectedColor = Color.Black,
    TextSize = 12,
    ImageSize = 24,
    BadgeCount = 3,
    BadgeColor = Color.Blue
};
  1. Setting the TabView property of a PXTab will be the view that will be shown when the tab is selected.

PXTabsLayout

If you do not want the PXTabsView to handle the switching of the views, you can simply use the PXTabsLayout which will give you the tab bar that you can place anywhere in your view. Use the Command&lt;PXTab&gt; TabSelectedCommand property to detect the change in tab selection.

Screenshots

iOS

alt text

Android

alt text

PXTabs

  • A tab layout that is more customizable and easier to use than trying to implement the native layouts.
  • Written entirely in Forms with no native code.
  • Check out the TabsPage in the examples for implementation.

NuGet

https://www.nuget.org/packages/Plugin.ProXamTabs

Implementation

All properties are bindable.

PXTabsView

  1. If implementing in Xaml, add the namespace xmlns:pxTabs=&quot;clr-namespace:Plugin.ProXamTabs.Shared;assembly=Plugin.ProXamTabs&quot;&quot;.
  2. Add the view to your page, set the tab bar on top or bottom by setting IsTabBarOnTop:
<pxTabs:PXTabsView
    x:Name="tabsView"
    BorderColor="Teal"
    SliderColor="Teal"
    IsBorderOnBottom="False"
    IsBorderVisible="True"
    IsSliderOnBottom="False"
    IsSliderVisible="True"
    IsTabBarOnTop="False"/>
  1. Create a list of PXTabs and and them to the tab view: tabsView.Tabs = [YourListOfTabs];, or bind the list directly. The PXTab is fully customisable:
new PXTab()
{
    TabId = 1,
    TabView = new HomeView(),
    Text = "Home",
    SelectedImage = "tab_home",
    UnselectedImage = "tab_home_gray",
    SelectedColor = Color.Gray,
    UnSelectedColor = Color.Black,
    TextSize = 12,
    ImageSize = 24,
    BadgeCount = 3,
    BadgeColor = Color.Blue
};
  1. Setting the TabView property of a PXTab will be the view that will be shown when the tab is selected.

PXTabsLayout

If you do not want the PXTabsView to handle the switching of the views, you can simply use the PXTabsLayout which will give you the tab bar that you can place anywhere in your view. Use the Command&lt;PXTab&gt; TabSelectedCommand property to detect the change in tab selection.

Screenshots

iOS

alt text

Android

alt text

Version History

Version Downloads Last updated
1.5.7 1,090 5/24/2018
1.5.6 1,111 4/16/2018
1.5.5 257 4/5/2018
1.5.4 227 3/20/2018
1.5.3 223 3/14/2018
1.5.2 188 3/12/2018
1.5.1 210 3/10/2018
1.5.0 205 3/7/2018