Conventions
Our first aim is to remove friction, it is not always easy and cannot be done every single time, but one thing that can give a lot of benefits in this area is to move from a configuration based toolkit to a convention based toolkit, we suppose that this concept is widely accepted and is nothing new.
What happens when these lines of code are executed:
1
public partial class App : Application
2
{
3
public App()
4
{
5
this.AddRadicalApplication<MainView>();
6
}
7
}
Copied!
A lot of things:
    1.
    The application Startup event is wired;
    2.
    When the Startup event is fired:
      1.
      Assemblies are scanned looking for all types
      2.
      ServiceCollection is configured using the bootstrap conventions;
      3.
      The Inversion of Control container is created;
      4.
      The main window (the one identified by the TShellView generic parameter) is resolved and shown;
Last modified 16d ago
Copy link