Learn how to integrate dependency injection with our navigation infrastructure. Dependency injection is useful for managing dependencies in an application. It's also useful to have all of the navigation configuration at the root of the application for maximum flexibility.
Navigation is an essential piece of an application. In this series, I demonstrate how to implement various navigation scenarios in a WPF MVVM application.
NOTE: The NavigationBarViewModel should be registered as Transient @ 12:28.
TIMESTAMPS:
0:00 - Introduction
1:15 - Installing Packages
1:39 - Basic Setup
3:55 - Registering Navigation Services
7:50 - Registering View Models
12:28 - MISTAKE: NavigationBarViewModel should be Transient
12:32 - Other Thoughts
14:10 - Conclusion
SOURCE CODE: https://github.com/SingletonSean/wpf-tutorials/tree/master/NavigationMVVM
OTHER LINKS:
Become a Member: https://www.youtube.com/channel/UC7X9mQ_XtTYWzr9Tf_NYcIg/join
Donations: https://www.paypal.com/biz/fund?id=UBZCZWX2UVWJE