Back to Devexpress

BaseView.ReleaseDeferredLoadControl(BaseDocument, Boolean) Method

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-baseview-dot-releasedeferredloadcontrol-x28-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-basedocument-system-dot-boolean-x29.md

latest3.7 KB
Original Source

BaseView.ReleaseDeferredLoadControl(BaseDocument, Boolean) Method

Fires the BaseView.ControlReleasing event with the specified parameter for the specified document.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void ReleaseDeferredLoadControl(
    BaseDocument document,
    bool keepControl
)
vb
Public Sub ReleaseDeferredLoadControl(
    document As BaseDocument,
    keepControl As Boolean
)

Parameters

NameTypeDescription
documentBaseDocument

A BaseDocument object for which the event should be fired.

| | keepControl | Boolean |

true , to cancel the release and keep the document content; otherwise, false.

|

Remarks

The ReleaseDeferredLoadControl method is in effect if the document content is loaded using the Deferred Load mechanism.

By default, when the BaseView.ControlReleasing event is fired on changing the selected document, the ControlReleasingEventArgs.KeepControl property is set to true.

The ReleaseDeferredLoadControl method allows you to fire the BaseView.ControlReleasing event for the specified document with the specified ControlReleasingEventArgs.KeepControl property. The keepControls parameter specifies the ControlReleasingEventArgs.KeepControl property value. You can override this property value in the event handler. The document for which the event is raised can be selected via the DocumentCancelEventArgs.Document property of the ControlReleasingEventArgs object passed to an event handler.

The BaseView.ControlReleasing event does not fire if the content of the specified document is already released.

See Also

ControlReleasing

Deferred Load

BaseView Class

BaseView Members

DevExpress.XtraBars.Docking2010.Views Namespace