MenuAction

An action shown in a button, toolbar or context menu.
public sealed class MenuAction

Properties

Command

Command invoked when the action is chosen.

Type: ICommand?

public ICommand? Command { get; set; }

CommandParameter

The parameter passed to Command.

A collection item menu uses its current item while this is null.

Type: object?

public object? CommandParameter { get; set; }

Icon

The local icon shown beside the title, or null for none.

Type: ImageSource?

public ImageSource? Icon { get; set; }

IsDestructive

Whether the entry is styled as destructive.

Type: bool

public bool IsDestructive { get; set; }

Text

The entry's title.

Type: string

public string Text { get; set; }