Second week in Tong Hin!

I was given my first task in Tong Hin and assigned to convert a WPF project to prism MVVM View Model and do some unit tests . As usual , I will note down the things I’ve done my second week .

For my second week , I started to work on the UI of my given task . I have completed most of the UI but without data bindings . I also fixed some minor problem such as connecting the config path to the database, created different checkbox buttons in my project .

Also , I finally did my first unit test (with the help of my supervisor) and learned some things about wrappers . I also managed to complete most of the “Prism MVVM View Model” tutorial and EF core tutorial .

Next , I learned a new delegate such as Func in c# , Func is a delegate that points to a method that accepts one or more arguments and returns a value .

That is all for this week . Will be ready for more challenges , so for next week , my goal is to will try to load the data from database to the data-grid in my UI in the project and tryout more unit testing .

My first week in Tong Hin !

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 !