{"repo":"anpin/ContextMenuContainer","free":true,"listed":false,"github":"https://github.com/anpin/ContextMenuContainer","clone":"git clone https://github.com/anpin/ContextMenuContainer.git","description":"Native context menu for any MAUI view","language":"C#","stars":73,"topics":["maui","xamarin","xamarin-forms","context-menu","ios","ui-components","uwp"],"license":"MIT","category":"mobile-apps","readme_excerpt":"ContextMenuContainer Native Context Menu for .NET MAUI Add native context menus to any view in your .NET MAUI application. Supports all major platforms: Windows, Android, iOS, macOS Platform Preview iOS Android macOS Windows :-------------------------: :-------------------------: :-------------------------: :-------------------------: Installation Or via NuGet Package Manager. Setup 1. Initialize the component in your MauiProgram.cs by adding the extension method: 2. Add the namespace to your XAML file: Basic Usage Wrap any view with the ContextMenuContainer and define your context menu items: Inline menu items: Binding menu items from ViewModel: ContextMenuItem Properties Property Type Description ---------- ------ ------------- Text string The text label for the menu item Command ICommand Command to execute when the item is tapped CommandParameter object Parameter to pass to the command IsEnabled bool Whether the item is enabled (default: true) IsDestructive bool Marks the item as destructive (red text) Icon FileImageSource Icon for the menu item Icons To use icons in your context menu items: 1. Add platform-specific image assets to the appropriate folders 2. Bind to a FileImageSource from your ViewModel SVG format is recommended for best cross-platform support. Known Issues - With Xamarin.Forms when used in a CollectionView or ListView item template, there may be conflicts with the collection's own tap/selection events. Consider using TapGestureRecognizer directly in these","default_branch":null,"files":null,"tree":[],"storefront":"/r/anpin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/anpin/ContextMenuContainer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}