I want to display badge counter above the icon in ToolbarItem for Xamarin forms application. In my application I am using bottom tab and top tabbed page.
<Controls:ExtendedTabbedPage.ToolbarItems >
<ToolbarItem Icon="cart" Command="{Binding ToolbarItemCommand}" />
</Controls:ExtendedTabbedPage.ToolbarItems>
<Controls:ExtendedTabbedPage.Children>
<NavigationPage x:Name="HomePage" Title="CHILDREN" IconImageSource="child_tab_orange.png" BarBackgroundColor="#F88720" BarTextColor="White">
<x:Arguments>
<local:HomePage /> <!--Content page-->
</x:Arguments>
</NavigationPage>
<NavigationPage x:Name="ConnectTab" Title="CONNECT" IconImageSource="connect_tab_blue.png" BarBackgroundColor="#F88720" BarTextColor="White">
<x:Arguments>
<local1:ConnectTabPage /> <!--Tabbed page with 3 content page-->
</x:Arguments>
</NavigationPage>
</Controls:ExtendedTabbedPage.Children>
....
I am not able to find RightBarButtonItems for the ConnectTabPage page where ConnectTabPage is top tabbed page with 3 content page.
var rightButtonItems = vc?.ParentViewController?.NavigationItem?.RightBarButtonItems;
rightButtonItems returns null for ConnectTabPage but it's working for HomePage
Anyone having an idea of this issue?