I want to dynamically copy or move TabItems from one TabControl to another TabControl. Unfortunately, I get the following exception:
{"Element already has a logical parent. It must be detached from the old parent before it is attached to a new one."}
Trying to delete it from the old TabControl before adding it to the new throws off my iterator.