You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show ContextMenu on long press on visual element in mobile platformΒ #33402
We can now attach a context menu to any visual element using a MenuFlyout control, but on mobile it doesn't work correctly. It should appear on long press on visual element.
Public API Changes
API is not changed.
Intended Use-Case
It is very important issue, because context menu is used very often and developers wait that it will work on mobile on long press. This functionality will help .NET MAUI become #1 platform.
Reacted by Pavel HoleΔek and funnelshift
Reacted by bohdanbats-principles, Bohdan Bats and smihaly-ex
changed the title [-]Add ContextMenu property to common visual elements[/-][+]Show ContextMenu on long press on visual element in mobile platform[/+]on Jan 6, 2026
Thanks for your suggestion! Honestly, personally I think this is just not a super common pattern in mobile and that's why it probably wasn't added as such.
I don't think we will be adding this anytime soon, instead, I would be interested to maybe add #12816 and #8675 so that you should be able to implement this on your own where needed.
I've added this to the backlog for now and lets see if more people will find this and leave their comments or emoji reactions.
I agree its not super common, but we have added this to our entire application to add some nice sugar to it. Hoping that our users will in the furure find it useful because we can group functionality closer to the context (like cards). Its actually also made us do some rethinking with our designers to figure out what we mean by our features, as they suddenly have to come up with a word for a feature (due to context menus have to be words with icons) that maybe just was a icon before.
@jfversluis It's pretty common to press and hold on a listitem or an item in general to display a context menu, just like a right click.
I've seen that .NET 11 is getting the long press functionality.
Since ListView is Obsolete and CollectionView still doesn't has a proper way to display a contextmenu across different systems (SwipeView isn't a proper contextmenu). This could give the opportunity to bring this feature back.
Not only that but WinUI, macOS, iOS and Android already has a proper ContextMenu across systems: Android
"To reveal a contextual menu, tap and hold, or right click (desktop), selected text." Android - Contextual Action Bar iOS - mac Catalyst WinUI
Activity
[-]Add ContextMenu property to common visual elements[/-][+]Show ContextMenu on long press on visual element in mobile platform[/+]jfversluis commentedon Jan 7, 2026
Thanks for your suggestion! Honestly, personally I think this is just not a super common pattern in mobile and that's why it probably wasn't added as such.
I don't think we will be adding this anytime soon, instead, I would be interested to maybe add #12816 and #8675 so that you should be able to implement this on your own where needed.
I've added this to the backlog for now and lets see if more people will find this and leave their comments or emoji reactions.
bohdan-bats-bs commentedon Jan 7, 2026
This suggestion is also here.
bohdan-bats-bs commentedon Jan 7, 2026
I also don't understand how
FlyoutBase.ContextFlyoutworks on mobile for now. When does it appear?haavamoa commentedon Jan 8, 2026
If you simply want a context menu attached to any visual element with long press, natively, you can use our library:
https://github.com/DIPSAS/DIPS.Mobile.UI/wiki/Context-Menus
I agree its not super common, but we have added this to our entire application to add some nice sugar to it. Hoping that our users will in the furure find it useful because we can group functionality closer to the context (like cards). Its actually also made us do some rethinking with our designers to figure out what we mean by our features, as they suddenly have to come up with a word for a feature (due to context menus have to be words with icons) that maybe just was a icon before.
Heres an example from our app:

funnelshift commentedon Sep 7, 2026
@jfversluis It's pretty common to press and hold on a listitem or an item in general to display a context menu, just like a right click.
I've seen that .NET 11 is getting the long press functionality.
Since
ListViewis Obsolete andCollectionViewstill doesn't has a proper way to display a contextmenu across different systems (SwipeView isn't a proper contextmenu). This could give the opportunity to bring this feature back.Not only that but WinUI, macOS, iOS and Android already has a proper ContextMenu across systems:
Android
"To reveal a contextual menu, tap and hold, or right click (desktop), selected text."
Android - Contextual Action Bar
iOS - mac Catalyst
WinUI
funnelshift commentedon Sep 7, 2026
Eilon commentedon Sep 7, 2026
jfversluis commentedon Sep 8, 2026
Added it for .NET 12 to maybe revisit for that!