Quantcast
Channel: Active questions tagged listview - Stack Overflow
Viewing all articles
Browse latest Browse all 614

.NET MAUI intuitive context menu for ListView items

$
0
0

I have a .NET MAUI App with a ListView Control.Every ListViewItem opens a new Details Page when being selected (let-click/tapped).

Additionally, I have a set of actions (Edit, Delete, Add Child ...) that could be performed for each ListViewItem. I want these Actions to be intuitively arranged in some kind of context menu that is easy to use on all platforms:

  1. Clicking a "Hamburger" button (that is part of the ListViewItem) should open it
  2. Right-Clicking the ListViewItem on Windows should open it
  3. Long-Pressing the ListViewItem on iOS & Android should open it (while not disabling default selection of the ListViewItem)

To illustrate my vision: the context menu of Spotify Songs in a Playlist would be a positive example

I experimented with all kinds of "Out of the box" MAUI Solutions, but nothing seems to check all my boxes. This does not seem like such an explicit requirement to me - Is there an easy way to integrate this context menu for ListViewItems?

The closest I have been is with <ViewCell.ContextActions>, but it seems they can not be shown by the click of a button.


Viewing all articles
Browse latest Browse all 614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>