ArcGIS Pro 2.7 API Reference Guide
OnClosing Method

ArcGIS.Desktop.Framework.Contracts Namespace > Pane Class : OnClosing Method
The ArcGIS.Desktop.Framework.Events.CancelRoutedEventArgs that contains the event data.
Called when a request has been made to close the Pane.
Syntax
protected internal virtual void OnClosing( 
   CancelRoutedEventArgs e
)
Protected Friend Overridable Sub OnClosing( _
   ByVal e As CancelRoutedEventArgs _
) 

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 10, Windows 8.1

See Also

Reference

Pane Class
Pane Members