Repository navigation
Region Based Navigation
MvvmKit has a navigation concept that is based or regions. A Region is a logical representation of an area in the UI where you can place a view, backed by a view model. Before we go on and explain the navigation concept, we need to define a few terms.
In MvvmKit - when we say Component, we mean a combination of view and view model.
The main equation of MVVM says that View.DataContext==ViewModel. In MvvmKit, A view and view model that are bound together are called Component
The UI is made of a hierarchical structure of components. Each component may contain additional component. For example, the main screen may hold a toolbar, a list of items, and a preview for the selected item. The toolbar may be divided into parts, and so on. Each such part is called a "Region". A region has representation both in the visual world (views) and in the logical world (view models). In the visual world it represents an area that may contain a view. In the logical world it has a specific role in the application.
For example, assume that you have an email application where you can view your mails list on the left, and when you click on an email, you see it's preview in the center. The "left" area may be called the "List Region" where you will place the "Mails List Component". The center area may be called the "Preview Region" where you will place Preview components. You may even change components in this region based on the currently selected email.
Navigation is the action of setting a specific component to a region.