Hi,
I am looking to change the default icon I get when adding sticky notes
via code to the PDF. Currently I am using this function:
private async void SetBitmapSource(WriteableBitmap imageBitmap)
{
Windows.Storage.StorageFile file = await
Windows.Storage.StorageFile.GetFileFromApplicationUriAsync(new
Uri("ms-appx:///MyProject/MyStickyNote.png"));
using (Windows.Storage.Streams.IRandomAccessStream
fileStream = await
file.OpenAsync(Windows.Storage.FileAccessMode.Read))
{
try
{
await imageBitmap.SetSourceAsync(fileStream);
}
catch (TaskCanceledException)
{
// The async action to set the WriteableBitmap's
source may be canceled if the source is changed again while the action
is in progress
}
}
}
But it does not work. Is there any chance?
Thanks,