Skip to main content

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