Most of the technology used in Tong Hin consist of MVVM , Prism and EF Core. Since I have no experience in anyone of them . I spent majority of my time getting familiar through the tutorials that my supervisor, Peter provided me with.
I will just take this blog to write down whatever I learned and remember , moreover using this like a notepad/reminder . In one of the tutorials “Introduction to Prism for WPF”, I learned about regions, modules, view discovery, view injection, IEventAggregator, DelegateCommand and RegionNavigation.
Through my understanding, regions are placeholder for dynamic content, to inject the UI controls from the views .
A module is a functional unit of an application . The module is a structure that binds a ViewModel to its View and each module implements the IModule interface , which contains a method called, OnInitialized (IContainerProvider) to pass objects from one container to another .
A view injection is when your code access a reference from a region . Your code will query a RegionManager for a specific region by name then inject views into it. After adding the view , you can activate it like a deck of cards by using the command .Add .
A RegionNavigation is used to access between different views .
An IEventAggregator is used to obtain reference from a region similar to view injection , to send (publish) and receive (subscribe) events between modules .
Will continue looking into the tutorials and try to proceed with “WPF and MVVM : TDD of ViewModels” tutorial next week !
