Skip to main content

DocumentsViewModel<TModule, TUnitOfWork>.OnClosing(CancelEventArgs) Method

Used to close all opened documents and allows you to save unsaved results and to cancel closing. Since DocumentsViewModel is a POCO view model, an instance of this class will also expose the OnClosingCommand property that can be used as a binding source in views.

Namespace: DevExpress.Mvvm.ViewModel

Assembly: DevExpress.Mvvm.v23.2.ViewModel.dll

NuGet Package: DevExpress.Scaffolding.Core

Declaration

public virtual void OnClosing(
    CancelEventArgs cancelEventArgs
)

Parameters

Name Type Description
cancelEventArgs CancelEventArgs

An argument of the System.ComponentModel.CancelEventArgs type which is used to cancel closing if needed.

See Also