ArcGIS Pro 3.2 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 top 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
    protected internal override void OnClick()
    {
      Notification notification = new Notification()
      {
        Title = "Command completion",
        Message = "Your task has completed",
        ImageSource = (ImageSource)Application.Current["BexDog32"]
      };
                
      FrameworkApplication.AddNotification(notification);
    }
    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 Notification();
    notification.Title = FrameworkApplication.Title;
    notification.Message = "Notification 1";
    notification.ImageSource = System.Windows.Application.Current.Resources["ToastLicensing32"] as ImageSource;
    
    ArcGIS.Desktop.Framework.FrameworkApplication.AddNotification(notification);
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Framework.Notification

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also