AnsweredAssumed Answered

How to show costum images in ArcGIS Pro notification?

Question asked by krank42 on Nov 11, 2018
Latest reply on Jun 2, 2019 by stefan.dieters@dpipwe

I wrote an ArcGIS Pro addin with the SDK to show notifications.

Since Version 2.2 showing costum images in notifications should be possible. How can I reach them, if they are put to the image folder an should be shown in the internal class Module1.

 

notification = new NotificationItem(dateNews, false, thema, NotificationType.Custom, date: myDate,
customImage: "pack://application:,,,/Module1;component/Images/globe30.png");
NotificationManager.AddNotification(notification);

 

 

This toastimage is shown with this code:

notification = new NotificationItem(dateNews, false, thema, NotificationType.Custom, date: myDate,
customImage: "pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/ToastLicensing16.png");
NotificationManager.AddNotification(notification);

 

Thanks Karsten

Outcomes