Hello,
By referring to the official documentation, we could see that there are two types of components in MAUI's flyout, flyoutitem
and menuitem
. Among them, menuitem allows custom click events or commands and passes parameters.
Therefore, for your needs, it is more recommended to use to menuitem, so that you could use await Shell.Current.GoToAsync ($"{nameof(TeamsPage)}", navigationParameter)
in the event to pass parameters, please refer to Menu items for more details.
The
MenuItem
class has aClicked
event, and aCommand
property. Therefore,MenuItem
objects enable scenarios that execute an action in response to theMenuItem
being tapped.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.