Pin.ImageSource Property

Definition

Gets or sets the custom image source for this pin's icon. When set, this image will be used instead of the default platform pin icon. This is a bindable property.

public:
 property Microsoft::Maui::Controls::ImageSource ^ ImageSource { Microsoft::Maui::Controls::ImageSource ^ get(); void set(Microsoft::Maui::Controls::ImageSource ^ value); };
public Microsoft.Maui.Controls.ImageSource? ImageSource { get; set; }
member this.ImageSource : Microsoft.Maui.Controls.ImageSource with get, set
Public Property ImageSource As ImageSource

Property Value

Remarks

Supported image sources include file-based images, embedded resources, URIs, and streams. The image will be scaled by the underlying platform to a platform-defined size (32x32 points on iOS, 64x64 pixels on Android). Provide images that look clear when scaled to these sizes.

Applies to