You've just created your first WPF application.
Well, at least your project, right?
And this is what you should see right now.
So on the right side, I've got the Solution Explorer.
Then I have a designer window here and at the bottom I got a Xaml window.
Now, if you cannot see it that way, open up window and click on Reset Window layout to force the reset
to the world factory settings of Visual Studio.
Now, before we get started with creating a graphical user interface and digging deeper into Xaml itself
and the designer, I want to give you a brief introduction into the overall structure of a WPF project.
So as I said, this is the visual representation of our project.
So in the moment when we just run the debugging mode, right?
So simply compile and start our application, you can see that an application opens up right here.
And this is your project.
Now, this small toolbar right here is well for debugging purpose only.
So if you start the executable file your compiled file, it will not be visible.
This is just for debugging.
Great.
So, yeah, right now your application is empty, but it just works as expected.
Great.
Let's check the solution just for a second.
We can see a main window examle.
And if we open that up, that main window examined in the Solution Explorer, we can see a so-called
code behind file because it lays behind the well Xaml file.
Right here is our example file.
And here we got the code behind file and see that the name is exactly the same, but it has another
extension which is called CSS for sure.
C Sharp So let's open up main window doc Zamalek's So the code behind file for our main window.
Now if we take a look here, we can see that this is a class called Main Window, and it's inherited
from another class which is called Window.
And here some components get initialized.
Basically what this method does is that it initializes all the components of a user interface defined
in the Xaml representation right here.
So we will dig deeper, as I said into that topic in the next video.
If we take another look on the Solution Explorer, you can see an app, Xaml and its code behind file.
And this is like the starting point of our application.
So the entry point, just like your static void main inside of a console application and now it looks
like it doesn't do much, right?
So if we take a look at the app here, but it's inherited from the application and if we just F12 in
that, we can find some code which is well used for bootstrapping the application.
So don't worry about all of that too much.
But I just wanted to give you some information on that project structure itself.
Another takeaway is that we can have multiple windows.
Right now we only have a main window and it's well correlated code behind file, but we can for sure
create more windows which have their own code behind files.
Okay, so that's it.
You're now ready to create your first graphical user interface elements using Xaml.
So let's get started on that.