You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, when you try to create a ReactiveCommand before you have a RootVisual assigned in SL, RxApp will throw an exception because it is checking InUnitTestRunner() passing in Application.Current.RootVisual which it expects been set.
To reproduce simply create a new SL project, have a ViewLocator as a static resource to which you bind from the view. When instantiating the view, the model gets instantiated first and since the view wasn't set to the RootVisual before the model was instantiated it will be null.
Workaround: in Application_Startup set RootVisual to new Grid() and then set to the main view.
The text was updated successfully, but these errors were encountered:
Hi, when you try to create a
ReactiveCommand
before you have aRootVisual
assigned in SL,RxApp
will throw an exception because it is checkingInUnitTestRunner()
passing inApplication.Current.RootVisual
which it expects been set.To reproduce simply create a new SL project, have a ViewLocator as a static resource to which you bind from the view. When instantiating the view, the model gets instantiated first and since the view wasn't set to the
RootVisual
before the model was instantiated it will be null.Workaround: in
Application_Startup
setRootVisual
tonew Grid()
and then set to the main view.The text was updated successfully, but these errors were encountered: