Each dotnet application (PE files) starts with an entry point, which is usually "Main", but in wpf you cannot see this because the studio is hiding it from the user, as this is rather dirty code. you will know the thread of execution as soon as you find the Main method. To do this, take a look at the following image 
source share