Udostępnij za pośrednictwem


MapBillboard.Image Property

Definition

Gets or sets the image for the MapBillboard. Provide an optional custom image to replace the default point of interest (POI) image.

public:
 property IRandomAccessStreamReference ^ Image { IRandomAccessStreamReference ^ get(); void set(IRandomAccessStreamReference ^ value); };
IRandomAccessStreamReference Image();

void Image(IRandomAccessStreamReference value);
public IRandomAccessStreamReference Image { get; set; }
var iRandomAccessStreamReference = mapBillboard.image;
mapBillboard.image = iRandomAccessStreamReference;
Public Property Image As IRandomAccessStreamReference

Property Value

The point of interest (POI) image for the MapBillboard.

Remarks

The following line of code displays the MapBillboard with a custom image saved in the Assets folder of the project.

MapBillboard1.Image = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/customicon.png"));

Applies to