How can I reparent an UIElement
to another Window? I have set Content to null prior to closing the Window. Afterwards a new Window is started and the UIElement
is set to the Content of that Window.
This gives an InvalidOperationException: "Het opgegeven element is al het logische onderliggende element van een ander element. Koppel dit eerst los."
Unfortunately my windows is dutch. The rough translation is as follows: "The specified element is already the logical child element of another element. Disconnect it first."
The thing I don't understand is that I have decoupled it, but still it gives this error.