ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / Pane Class / OnClosing Method
The ArcGIS.Desktop.Framework.Events.CancelRoutedEventArgs that contains the event data.

OnClosing Method
Called when a request has been made to close the Pane.
Syntax
protected internal virtual void OnClosing( 
   CancelRoutedEventArgs e
)

Parameters

e
The ArcGIS.Desktop.Framework.Events.CancelRoutedEventArgs that contains the event data.
Remarks

The Pane can decide to override and cancel the close request by setting the ArcGIS.Desktop.Framework.Events.CancelRoutedEventArgs.Cancel property to true.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also