public void SetThumbnail( BitmapSource thumbnail )
Public Sub SetThumbnail( _ ByVal thumbnail As BitmapSource _ )
Parameters
- thumbnail
- The thumbnail.
public void SetThumbnail( BitmapSource thumbnail )
Public Sub SetThumbnail( _ ByVal thumbnail As BitmapSource _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
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)); }
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, Windows 8.1