dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.19k stars 1.74k forks source link

Badge for ToolbarItem #23802

Open flogeiger opened 3 months ago

flogeiger commented 3 months ago

Description

Hi everyone, hope you are doing great!

I have an application in Net Maui 8 for IOS.

In the app, there are some icons in toolbar within a ContentPage.

When in xamarin, It was possible to define and show notification badges over icons by using drawables for specific platform as android, for example. But when it's about net maui, there is only documentation explaining how to include notification badges over app icon, but not over toolbar items inside the app pages.

So far, I couldn't find any docs about this kind of implementation. Her is the documentation for Xamarin: https://www.xamboy.com/2018/03/08/adding-badge-to-toolbaritem-in-xamarin-forms/

Do anyone have some tips for that case, please?

Public API Changes

https://www.xamboy.com/2018/03/08/adding-badge-to-toolbaritem-in-xamarin-forms/

Intended Use-Case

https://www.xamboy.com/2018/03/08/adding-badge-to-toolbaritem-in-xamarin-forms/

github-actions[bot] commented 3 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

mattleibow commented 3 months ago

Maybe open an issue in the community toolkit. Not sure this works on macOS and Windows? So that may be enough to get the toolkit to do this instead.

https://github.com/CommunityToolkit/Maui

flogeiger commented 3 months ago

Are you sure that is the right place? Because i am Using the ContentPage.ToolbarItems:

https://learn.microsoft.com/en-us/dotnet/maui/user-interface/toolbaritem?view=net-maui-8.0

I dont see the dependency between the ContentPage.ToolbarItems and Toolkit

jfversluis commented 3 months ago

Related: #8305

mattleibow commented 3 months ago

@flogeiger sorry, I was not super clear. There is no dependency, but I am not sure if all the platforms support this feature. I also have not seen a super high demand. As a result, this may be faster made available if the community toolkit folks implemented it. It will be great to get into maui itself, but with .NET 9 around the corner I am not sure this will come to maui in the next year at least.