How do I add TabItems to a TabControl from another TabControl?
Posted
by joebeazelman
on Stack Overflow
See other posts from Stack Overflow
or by joebeazelman
Published on 2010-04-13T03:52:22Z
Indexed on
2010/04/13
4:52 UTC
Read the original article
Hit count: 425
wpf
|tabcontrol
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.
© Stack Overflow or respective owner