How to create WPF application without XAML?
Application and Window class relatshionship
Most minimally functional WPF programs contain an instance of the Application class and one or more instances of the Window class.
You can think of a WPF program as a single Application object and one or more Window objects:
The Window Class
Every window on the screen is the visual representation of an instance of the Window class.