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.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.RichEdit, 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
By default, the RIchEditControl is disposed of when a window is closed. This behavior is implemented due to the RichEditControl’s internal structure specifics. If you have a reason to retain a RichEditControl instance and re-use it after a window is closed, set the HandleWindowClose to false. Consider possible memory leaks in this situation.
You can destroy the control manually by calling the RichEditControl.Dispose method.