ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Framework Namespace / Notification Class / ImageSource Property
Example

In This Topic
    ImageSource Property (Notification)
    In This Topic
    Gets or sets the image to show. ImageUrl must be null for this property to work properly.
    Syntax
    Public Property ImageSource As ImageSource
    public ImageSource ImageSource {get; set;}
    Example
    Add a toast notification
    {
      Notification notification = new()
      {
        Title = FrameworkApplication.Title,
        Message = "Notification 1",
        ImageSource = Application.Current.Resources["ToastLicensing32"] as ImageSource
      };
    
      FrameworkApplication.AddNotification(notification);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also