Xceed Toolkit Plus for WPF v4.6 Documentation
DocumentClosing Event


Xceed.Wpf.AvalonDock Assembly > Xceed.Wpf.AvalonDock Namespace > DockingManager Class : DocumentClosing Event
Raised when a document is about to be closed.
Syntax
'Declaration
 
Public Event DocumentClosing As EventHandler(Of DocumentClosingEventArgs)
'Usage
 
Dim instance As DockingManager
Dim handler As EventHandler(Of DocumentClosingEventArgs)
 
AddHandler instance.DocumentClosing, handler
public event EventHandler<DocumentClosingEventArgs> DocumentClosing
Event Data

The event handler receives an argument of type DocumentClosingEventArgs containing data related to this event. The following DocumentClosingEventArgs properties provide information specific to this event.

PropertyDescription
(Inherited from System.ComponentModel.CancelEventArgs)
Gets the document that is about to be closed.  
Remarks
Subscribers have the opportuniy to cancel the operation.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also