How do I create an image button?

Platform: .NET MAUI|Category: Controls

To create an image button, set the ImageSource property to an image file or a vector image.

XAML:

<Button x:Name="button" ImageSource="icon.png"/>