How to display notification on create feature?

545
3
Jump to solution
12-18-2023 03:14 PM
HannahBernal
New Contributor II

Hello,

When creating features within ArcGIS Pro, there is a green pop-up notification that appears at the top of the Create Features like this:

HannahBernal_0-1702940621350.png

I want to display this same notification when I create ArcGIS features in my application that is connected to ArcGIS Pro. Is it possible to do this using the API?

What I have found so far is that we can create pop-up notifications using the Notifications class, but I would like to know if it is possible to use the existing green notification instead.

Thank you in advance,

Hannah

 

1 Solution

Accepted Solutions
CharlesMacleod
Esri Regular Contributor

The best you can do is add your own notification to the application. The Create dockpane "built-in" message is not accessible.

var feature_name = "Parcels";
 ArcGIS.Desktop.Framework.FrameworkApplication.AddNotification(
   new ArcGIS.Desktop.Framework.Notification() {
     Message = $"Create {feature_name} complete",
     Title = "Create features",
     ImageUrl = @"pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/MarsCat32.png"
   }
 );

 

View solution in original post

3 Replies
CharlesMacleod
Esri Regular Contributor

The best you can do is add your own notification to the application. The Create dockpane "built-in" message is not accessible.

var feature_name = "Parcels";
 ArcGIS.Desktop.Framework.FrameworkApplication.AddNotification(
   new ArcGIS.Desktop.Framework.Notification() {
     Message = $"Create {feature_name} complete",
     Title = "Create features",
     ImageUrl = @"pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/MarsCat32.png"
   }
 );

 

HannahBernal
New Contributor II

Thank you very much for your help, I appreciate it!

0 Kudos
BillSmith
New Contributor III

Thanks Charlie!

0 Kudos