How to add a tick mark for the selected MenuFlyouitems on MAUI using XAML?

Ijaz M 206 Reputation points


I need the selected menuflyouitems to have such a tick mark beside them, when user selects them. TIA!

User's image

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,557 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 30,106 Reputation points Microsoft Vendor


    According to the official documentation Display icons on menu items, you could set the IconImageSource property of the MenuFlyoutItem to set the icon.

    However, after code testing, whether IconImageSource is set in the Click event or data binding is set on IconImageSource using MVVM, the view cannot display the icon when selected.

    Therefore, it is more recommended that you publish this issue to the GitHub repository to make the development team aware of this issue.

    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.

    0 comments No comments