When using a ThingGeo Map control in a Silverlight Foatable window (floatablewindow.codeplex.com/) I get the following error after the Map control is initialized:
Error: Unhandled error in silverlight application
Code: 4009
Category: ManagedRuntimeError
Message: Element is already the child of another element.
I'm using IE8, Silverlight 4, VS 2010, ThinkGeo Silverlight Edition. I created a class that inherits from ThinkGeo.MapSuite.SilverlightEdition.Map. I tried adding this control in a XAML file, creating a field in the container window, creating the instance in the window load event... None of this fixed the error.
I have tested the Map control in XAML UserControl and it works fine. There could be a problem including it in Silverlight Child or Foatable windows. I need to include the Map in a FloatableWindow, also in my application there could be more than one FloatableWindow with a Map active at the same time...
Any suggestions?