Skip to content

MenuItem.Icon property

Gets or sets this placement’s icon override.

public IconTemplate? Icon { get; set; }

When this property has no value source, the command’s default icon is used; an explicitly assigned null suppresses that icon.

Fluent: .Icon(IconTemplate)