ControlReleasingEventArgs.KeepControl Property

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

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v21.2.dll


public bool KeepControl { get; set; }

Property Value

Type Description

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


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