Pin.ImageSource Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.