Possible Duplicate:
No Main() in WPF?
This is the code for Main() in WPF programming.
[STAThread]
public static void Main()
{
  Window win = new Window();
  ....
  Application app = new Application();
  app.Run(win);
}
However, when I tried to use VS2010 to make WPF Application.

I can't find the Main(), but public MainWindow(). 

Why is the Main() function hidden? How can I get the Main() when I use VS2010 WPF project?
 
     
     
     
    