-
In
The ViewModel is defined as below:
However, when I tried to resolve the ViewModel by |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
OK, I figured it out.
|
Beta Was this translation helpful? Give feedback.
OK, I figured it out.
I have to call
builder.Window.InitializeNavigationAsync
so that the navigator can be injected to the constructor correctly.I also register the navigator instance to the service provider in
initialNavigate
so I can resolve it anywhere.