What is the function of this MainWindow file?

0

According to the project below:

link

I know that the purpose of the Main function is to be the main function, but in the example above the MainWindow file is also doing the function of presenting the layout function should it not belong to the View? In that context I would add one more form, in a manner acceptable to .NET convention. From the concept I absorbed was that I should add another MainWindow style file to add the layout of the second form I want to assign to the project, this would be correct. After all the function of this MainWindow file submit the Layout is correct?

    
asked by anonymous 25.08.2017 / 13:49

1 answer

0

There is a difference between the method Main and MainWindow of WPF , this MainWindow is equivalent to Form1 of a winforms application.

In WPF, you can not find the Main method because it is generated during compilation.

link

    
25.08.2017 / 14:01