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

RichEditControl.HandleWindowClose Property

Gets or sets whether RichEditControl should be disposed of when a window is closed.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v24.2.dll

NuGet Package: DevExpress.Wpf.RichEdit

#Declaration

public bool HandleWindowClose { get; set; }

#Property Value

Type Description
Boolean

false, to prevent RichEditControl from being disposed of when a Window is closed; otherwise, true. Default is true.

#Remarks

The RichEditControl is disposed of when a window is closed. If you have a reason to retain a RichEditControl instance and re-use it after a window is closed, set the HandleWindowClose to false, obtain the DockLayoutManager in the RichEditControl’s template and set its DockLayoutManager.DisposeOnWindowClosing property to false in the RichEditControl.Loaded event handler. Consider possible memory leaks in this situation.

Call the RichEditControl.Dispose method to destroy the control manually.

See Also