Windows Presentation Foundation (WPF) Question:

From where the execution start in WPF application?

Tweet Share WhatsApp

Answer:

WPF applications created in Visual Studio run without a Main method. This is because the applications are special-cased when they are compiled from XAML. That means, Visual Studio attaches a Build Action of ApplicationDefinition to the XAML file. This results in the auto generation of a Main method.

Download WPF PDF Read All 57 WPF Questions
Previous QuestionNext Question
How you can make a ToolTip appear while hovering over a disabled element?Why ListBox made to scroll smoothly?