[]
        
(Showing Draft Content)

C1.Framework.XView.OnHandleDestroyed

OnHandleDestroyed Method

OnHandleDestroyed(EventArgs)

Remove hosted controls before disposing of the parent control.

Declaration
protected override void OnHandleDestroyed(EventArgs e)
Parameters
Type Name Description
EventArgs e

EventArgs that contains the event data.

Overrides
Remarks

This allows the host element to remain valid even if their parent view is disposed. To dispose of the hosted control, call Dispose on the hosted control directly.

Note: XView determines that a Controlbelongs to an C1.Framework.XView.Element if the control's Tag property contains a reference to a Control object.