Please visit DEMANDDRAFT.STORE for quality of products...

Ad

Search This Blog

Saturday, July 21, 2012

Where’s the entry point in WPF application?

Where’s the entry point in WPF application?
When you create a WPF Windows Application in Visual Studio, the generated project has no Main method, yet it still runs as expected! In fact, even attempting to add a Main method gives a compilation error telling you that it is already defined.

Application is special-cased when it is compiled from XAML, because Visual Studio assigns
the XAML file a Build Action of ApplicationDefinition. This causes a Main method to be auto generated.

No comments:

Post a Comment