Back to Devexpress

ControlReleasingEventArgs.KeepControl Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-controlreleasingeventargs-3cee4cd4.md

latest2.4 KB
Original Source

ControlReleasingEventArgs.KeepControl Property

Gets or sets whether a deselected Document’s content should be kept.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public bool KeepControl { get; set; }
vb
Public Property KeepControl As Boolean

Property Value

TypeDescription
Boolean

true if the Document’s content should be kept; false to unbind a content.

|

Remarks

Empty Documents receive their content via the BaseView.QueryControl event. When deselecting such a Document, the BaseView.ControlReleasing event occurs. Handle this event to specify whether a Document’s content should be kept or unbound from the Document. If the KeepControl property equals false , you can further specify whether unbound content should be destroyed via the ControlReleasingEventArgs.DisposeControl property.

If the KeepControl property equals true , the Document keeps its content and does not raise the BaseView.ControlReleased event. See the Deferred Load topic to learn more.

See Also

Deferred Load

ControlReleasingEventArgs Class

ControlReleasingEventArgs Members

DevExpress.XtraBars.Docking2010.Views Namespace