Can we have a simple way to customize the behavior when clicking the bottom tabs? #31532
-
Instead of having to navigate to some routes, it's very common to use the bottom tabs as some sort of context menu. Currently I don't find a simple way to define the menu items and its accompanying click handling logic. Right now the tabs can only be defined in Shell.xaml and it can only do navigation. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
CoPilot AI got this question — here are a few practical ways you can currently intercept or override bottom tab clicks in .NET MAUI Shell, even though there’s no official “tab click event” yet. 1️⃣ Use
|
Beta Was this translation helpful? Give feedback.
CoPilot AI got this question — here are a few practical ways you can currently intercept or override bottom tab clicks in .NET MAUI Shell, even though there’s no official “tab click event” yet.
1️⃣ Use
CurrentItemChanged
orNavigating
eventsShell exposes events you can hook into when navigation changes.
You can detect when a tab is selected and run your own logic instead of navigating.
Pros: Simple to implement.
Cons: Fires for all navigation, so you’ll need to filter carefully.
2️⃣ Cus…