Set the thumbnail for the Bookmark. This method must be called on the MCT. Use QueuedTask.Run.
Change the thumbnail for a bookmark
public Task SetThumbnailAsync(Bookmark bookmark, string imagePath)
{
//Set the thumbnail to an image on disk, ie. C:\Pictures\MyPicture.png.
BitmapImage image = new BitmapImage(new Uri(imagePath, UriKind.RelativeOrAbsolute));
return QueuedTask.Run(() => bookmark.SetThumbnail(image));
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.