Hi, I'm receiving the following error message when I'm trying to add tab items dynamically to a tabcontrol inside a radwindow: "Element is already the child of another element."
I've uploaded a sample project so you can see what's going on. Basically I'm trying to create a "master" control with the tabcontrol and one initial tabitem. Then I add the other tab items through a dependency property in the child user controls. The problem occurs when you close the first window and then try to open it again. I'm not sure whether this is a problem in your component or if there's something wrong with my own code. I would appreciate it if you could just take a look and see if this problem is something you've come across before.
http://cid-cc43a90a79374ebd.skydrive.live.com/self.aspx/Public/SilverlightApplication10.zip
I've uploaded a sample project so you can see what's going on. Basically I'm trying to create a "master" control with the tabcontrol and one initial tabitem. Then I add the other tab items through a dependency property in the child user controls. The problem occurs when you close the first window and then try to open it again. I'm not sure whether this is a problem in your component or if there's something wrong with my own code. I would appreciate it if you could just take a look and see if this problem is something you've come across before.
http://cid-cc43a90a79374ebd.skydrive.live.com/self.aspx/Public/SilverlightApplication10.zip