How do I register transient views #103
-
DescriptionNavigation views are singleton by default. Is there any way to instantiate the ViewModel each time you navigate to a specified view? Environment
Severity (1-5)1=Low (annoyance), 5=High (crashes visual studio) Steps To ReproduceSteps to reproduce the behavior:
Expected BehaviorA clear and concise description of what you expected to happen. ScreenshotsIf applicable, add screenshots to help explain your problem. Additional contextAdd any other context about the problem here. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@chenzanyu In the future, please keep all questions/inquiries in the Discussions section, as this is not an issue. |
Beta Was this translation helpful? Give feedback.
-
Please read over the Prism Library's documentation on Registering Types. https://prismlibrary.com/docs/dependency-injection/registering-types.html |
Beta Was this translation helpful? Give feedback.
Please read over the Prism Library's documentation on Registering Types.
https://prismlibrary.com/docs/dependency-injection/registering-types.html