dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.83k stars 1.67k forks source link

ListView context menu on MacCatalyst doesn't show up at all #8664

Open Eilon opened 1 year ago

Eilon commented 1 year ago

Description

While investigating #6490, it turns out that a ListView with ContextActions doesn't show the actions anywhere on MacCatalyst. It tries to use the iOS codepath but those codepaths seem to not work on MacCatalyst. And, even if they did, it's probably not the right experience: on iOS you swipe to see context actions, whereas on MacCatalyst we would want a proper right-click context menu (just like Windows).

Steps to Reproduce

Use repro project from #6490

Version with bug

6.0.400 (current)

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

All

Did you find any workaround?

No known workaround.

Relevant log output

No response

shugaoye commented 1 year ago

Is there a plan to resolve this issue?

Eilon commented 1 year ago

@shugaoye no immediate plan, but we did recently get context menus working on Mac Catalyst, so we probably have some of the knowledge now to fix it.

homeyf commented 1 year ago

Verified this issue with Visual Studio for Mac 17.6 Preview (17.6.0.1539). Can repro on macOS platform with sample Project. Demo project image

piersdeseilligny commented 4 months ago

From my experience, with a trackpad it's possible to swipe the contextaction into view from the right (as if it were a mobile app) but it's obviously not desired behaviour, or ever expected from the user.