[]
Remove hosted controls before disposing of the parent control.
protected override void OnHandleDestroyed(EventArgs e)
Type | Name | Description |
---|---|---|
EventArgs | e | EventArgs that contains the event data. |
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.