ArcGIS Pro 2.9 API Reference Guide
OnPaneClosing Method (Module)

ArcGIS.Desktop.Framework.Contracts Namespace > Module Class : OnPaneClosing Method
The Pane being closed.
The event data associated with the closing event. Set the Cancel property to false to cancel the action.
Called by the Framework when one of the Module's Pane is about to close.
Syntax
protected internal virtual void OnPaneClosing( 
   Pane pane,
   CancelRoutedEventArgs e
)
Protected Friend Overridable Sub OnPaneClosing( _
   ByVal pane As Pane, _
   ByVal e As CancelRoutedEventArgs _
) 

Parameters

pane
The Pane being closed.
e
The event data associated with the closing event. Set the Cancel property to false to cancel the action.
Remarks
Modules are automatically notified whenever one of its panes are activated, deactivated, opened, or closed. This means a Module doesn’t have to listen to the Framework’s ActivePaneChanged event and from here filter for its panes; instead, Modules are given direct notification that one of their panes changed.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

Module Class
Module Members