Read original post at Punit Ganshani's Blog
When you convert a Winform application into a WPF application – In a Winform or a Console application, you need a static Main method that acts as an entry point to your executable. In a WPF application, you do not require any such static class to be present at the compile time.