Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ControlReleasingEventArgs.KeepControl Property

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

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public bool KeepControl { get; set; }

#Property Value

Type Description
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