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

In This Topic
    Notification Class
    In This Topic
    Represents a toast style notification.
    Syntax
    Remarks

    A toast notification is a transient message to the user that contains relevant, time-sensitive information and provides quick access to related content in an application. Notifications appear in the top right hand corner of the display and last for a few seconds unless the mouse pointer is over the top of them. Up to four notifications can appear at the same time. If more than four notifications are sent, each new notification bumps off the oldest one in the queue.

    Use FrameworkApplication.AddNotification to pop-up a new notification.

    Example
    Display a Pro MessageBox
    {
      ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Some Message", "Some title", MessageBoxButton.YesNo, MessageBoxImage.Information, MessageBoxResult.Yes);
    }
    Add a toast notification
    {
      Notification notification = new()
      {
        Title = FrameworkApplication.Title,
        Message = "Notification 1",
        ImageSource = Application.Current.Resources["ToastLicensing32"] as ImageSource
      };
    
      FrameworkApplication.AddNotification(notification);
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Framework.Notification

    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also