This demonstrates an issue with the WindowsXamlHost and multiple windows when using complex controls in the MainWindow.
To reproduce the issue:
- Build and launch solution
- Click the button on the top of the MainWindow to open the ChildWindow on a separate thread
- Close the ChildWindow
- Interact with the MainWindow's NavigationView
- An error will occur