Confirm context menu in iOS not working?

TazKing 85 Reputation points
2024-10-15T20:37:02.5366667+00:00

Has anyone used context menus in iOS? The code below for context menu on image works fine in Windows but not on iOS. I've tried many different touch settings unsuccessfully. I don't think that matters since it doesn't work with keyboard (and trackpad that has mouse buttons) either.

            <!--  Load image content  -->
            <Image Grid.Row="0" Source="mols.png"  >
                <FlyoutBase.ContextFlyout>
                    <MenuFlyout>
                        <MenuFlyoutItem Text="Load image"/>
                    </MenuFlyout>
                </FlyoutBase.ContextFlyout>
            </Image>

Can anyone confirm (or deny) this feature doesn't work in iOS?

Developer technologies | .NET | .NET MAUI
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2024-10-16T02:17:07.5633333+00:00

    Hello,

    Yes. Context menu only works on desktop app (on Mac Catalyst and Windows).

    Please see Display a context menu in a .NET MAUI desktop app - .NET MAUI | Microsoft Learn

    Best Regards,

    Wenyan Zhang


    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.