ElementHelper.DetachElementFromParent

Detaches an element from its current parrent

public static void DetachElementFromParent(UIElement elementToDetach,
	DependencyObject parentElement)

Parameters

elementToDetach
The element to detach.

parentElement
The parent element.

Exceptions

**System.NotSupportedException**
Can't remove element from current parent control of type + parentElement.GetType()

Remarks

Supports various ways of removing an element from its parent, such as content controls, child elements, and more.

Overloads:


See also:

Class ElementHelper

© West Wind Technologies, 1996-2021 • Updated: 02/14/20
Comment or report problem with topic