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.1.dll
NuGet Package: DevExpress.Wpf.RichEdit
Declaration
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. Refer to the following example for a code sample:
Call the RichEditControl.Dispose method to destroy the control manually.