title: What is the entry point of a WPF application?
body: <p>The <code>Main</code> method is the entry point of a C# console application. Thus, for example, if I have to start some threads or services, I will do it within the <code>Main</code> method.</p>
  
  <p>I do not see the <code>Main</code> method inside a WPF project, so what is the entry point of a WPF application? If I have to start some threads or services, where should write the code for starting them?</p>
  
  <p><strong>UPDATE:</strong> <a href="https://stackoverflow.com/a/8777142/364056">this answer</a> summarizes the available solutions, but what are the pros and cons of each solution?</p>