.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,650 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I have implemented a TabbedPage
in my .NET MAUI application using AppTabbedPage.xaml
. It contains 5 pages for tab navigation.
One of the tabs is dedicated to notifications, and I need to display a notification badge on this tab. The badge should display a count of notifications and update dynamically as the count changes.
Here are the specific details of what I need:
TabbedPage
.Does .NET MAUI provide built-in support for this, or do I need to use a custom solution (e.g., a custom handler)? If so, could you provide an example or point me in the right direction?
Thank you for your help!
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage
x:Class="Jacobs.AppTabbedPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pages="clr-namespace:Jacobs.Views"
xmlns:android="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls"
android:TabbedPage.IsSwipePagingEnabled="False"
BarBackgroundColor="{DynamicResource TabBarBackGroundColor}"
SelectedTabColor="{DynamicResource TabBarSelectedTabColor}"
UnselectedTabColor="{DynamicResource TabBarUnSelectedColor}"
android:TabbedPage.ToolbarPlacement="Bottom"
NavigationPage.HasNavigationBar="False">
<pages:HomePage Title="Home" IconImageSource="{DynamicResource HomeIcon}" />
<pages:AppContentPage Title="Jacobs Connect" IconImageSource="{DynamicResource JacobsConnectIcon}" />
<pages:ChatBotContentPage Title="Atlas" IconImageSource="{DynamicResource AtlasIcon}" />
<pages:NotificationPage Title="Notifications" IconImageSource="{DynamicResource NotificationTabIcon}" />
<pages:ProfilePage Title="Profile" IconImageSource="{DynamicResource ProfileIcon}" />
</TabbedPage>