Closed MattePozzy closed 1 year ago
ContextMenu is not supported in MauiReactor right now, working on add it, I'll keep you updated on this task
Using the latest version:
private ViewCell RenderGroup(GroupOfPerson person)
{
return new ViewCell
{
new Label(person.Initial)
{
new MenuFlyout
{
new MenuFlyoutItem("MenuItem1")
.OnClicked(()=>OnClickMenuItem("MenuItem1")),
new MenuFlyoutItem("MenuItem2")
.OnClicked(()=>OnClickMenuItem("MenuItem2")),
new MenuFlyoutItem("MenuItem3")
.OnClicked(()=>OnClickMenuItem("MenuItem3")),
}
}
.FontSize(14.0)
.FontAttributes(MauiControls.FontAttributes.Bold)
.Margin(5)
.BackgroundColor(Colors.LightGray)
,
};
}
private void OnClickMenuItem(string title)
{
ContainerPage?.DisplayAlert("MauiReactor", $"Clicked menu {title}", "OK");
}
Hi, I'm using the Maui listview and on windows I need to add a
ContextActions
due to this issue.I have tried to create a new ViewCell in MauiReactor but the properry
ContextActions
there isn't. I also tried this code, but the context menu doesn't appears.Also tried this:
How can I add a context menu to a ViewCell?
Thank you!