样式
代码
using ArcGIS.Core.CIM;
using ArcGIS.Core.Data;
using ArcGIS.Core.Geometry;
using ArcGIS.Desktop.Catalog;
using ArcGIS.Desktop.Core;
using ArcGIS.Desktop.Editing;
using ArcGIS.Desktop.Extensions;
using ArcGIS.Desktop.Framework;
using ArcGIS.Desktop.Framework.Contracts;
using ArcGIS.Desktop.Framework.Dialogs;
using ArcGIS.Desktop.Framework.Threading.Tasks;
using ArcGIS.Desktop.Layouts;
using ArcGIS.Desktop.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;namespace ProAppModule9
{internal class Button1 : Button{protected override void OnClick(){Notification notification = new Notification();try{if (Project.Current == null)return;notification.Title = "提示";notification.Message = "XXXXXXXXXXXXXXXX";notification.ImageUrl = @"pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericInformation16.png";ArcGIS.Desktop.Framework.FrameworkApplication.AddNotification(notification);}catch (Exception ex){ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show(ex.Message);}}}
}