You can't load Windows into a RoutingViewHost because it's a control. Load UserControls into the RoutingViewHost and create a top-level window whose contents are just a RoutingViewHost
Invalid cross-thread access using ReactiveUI RouterViewHost
-
24-06-2022 - |
سؤال
I am trying to learn ReactiveUI, and am currently trying to set up the Routing feature. I have been "following" the Play rxui-5-update branch on github:
https://github.com/play/play-windows/tree/rxui5-update/Play
In my MainWindow.xaml where I am setting up the RoutedViewHost I am getting the following error:
Invalid cross-thread access
...on the following line:
The same error is generated within MainWindow.xaml of the rxui5 version of Play.
المحلول
لا تنتمي إلى StackOverflow