public sealed class ActiveToolChangedEvent : ArcGIS.Core.Events.CompositePresentationEvent<ToolEventArgs>
Public NotInheritable Class ActiveToolChangedEvent Inherits ArcGIS.Core.Events.CompositePresentationEvent(Of ToolEventArgs)
public sealed class ActiveToolChangedEvent : ArcGIS.Core.Events.CompositePresentationEvent<ToolEventArgs>
Public NotInheritable Class ActiveToolChangedEvent Inherits ArcGIS.Core.Events.CompositePresentationEvent(Of ToolEventArgs)
private void SubscribeEvent() { ArcGIS.Desktop.Framework.Events.ActiveToolChangedEvent.Subscribe(OnActiveToolChanged); } private void UnSubscribeEvent() { ArcGIS.Desktop.Framework.Events.ActiveToolChangedEvent.Unsubscribe(OnActiveToolChanged); } private void OnActiveToolChanged(ArcGIS.Desktop.Framework.Events.ToolEventArgs args) { string prevTool = args.PreviousID; string newTool = args.CurrentID; }
System.Object
ArcGIS.Core.Events.EventBase
ArcGIS.Core.Events.CompositePresentationEvent<TPayload>
ArcGIS.Desktop.Framework.Events.ActiveToolChangedEvent
Target Platforms: Windows 11, Windows 10