Back to Devexpress

RichEditControl.HandleWindowClose Property

wpf-devexpress-dot-xpf-dot-richedit-dot-richeditcontrol-b3e101f4.md

latest1.5 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.RichEdit

Declaration

csharp
public bool HandleWindowClose { get; set; }
vb
Public Property HandleWindowClose As Boolean

Property Value

TypeDescription
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. Consider possible memory leaks in this situation.

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

See Also

RichEditControl Class

RichEditControl Members

DevExpress.Xpf.RichEdit Namespace