public class Notification : System.ComponentModel.INotifyPropertyChanged
Public Class Notification Implements System.ComponentModel.INotifyPropertyChanged
public class Notification : System.ComponentModel.INotifyPropertyChanged
Public Class Notification Implements System.ComponentModel.INotifyPropertyChanged
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.
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); }
ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Some Message", "Some title", MessageBoxButton.YesNo, MessageBoxImage.Information, MessageBoxResult.Yes);
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);
System.Object
ArcGIS.Desktop.Framework.Notification
Target Platforms: Windows 11, Windows 10