ElementHelper.DetachElementFromParent Finds the parentElement's parent and detaches it public static void DetachElementFromParent(FrameworkElement element) Remarks Looks for different types of parent objects in different types of containers