Understanding how to bind data is crucial for WPF applications.
So here I got the demo project again and I built a very simple application with using what we have covered
so far.
Please do not try to copy everything over.
Just give me a second to explain.
Here we got our grid, including row definitions and all of that.
We got a text box and labels.
So as I said, everything.
But you know what I've done here, right?
Let me bring up the GitHub page right here.
So this is the source code.
You can find it for sure attached to this lecture and you can simply take your demo project and clean
it so you can simply remove all of the content that you have created in your demo project before.
You could entirely download this project and open it up in Visual Studio, or you can simply click into
the WPF folder here and then you have that main window Examle and that main window Xaml, C-sharp and
that one simply contains the button.
Click right here, show Hello World, And then we have the main window Xaml where you can find the actual
user interface elements.
Right here is the grid.
You could simply copy it over from here, but don't forget to also copy the code behind file afterwards.
So in that way you don't have to try to write everything down by just taking a look at the screen and
see what I did and then you copy it over.
Maybe you're making some mistakes.
No, In that way you can simply copy, copy it over.
You will get exactly the same layout as the one that I'm using here.
And as I said, I promise there is nothing that you haven't seen.
We just got rows, columns.
We got the grid label, text box.
So you definitely have seen all of this during the previous WPF chapters.
Great.
So go ahead and set up your project so that you can actually see exactly what I see.
As I said, you could download the entire project and once you open it up and start the application,
make sure that everything works.
You should not get an error and if you get an error, chances are that you forget to set up your click
event for the button.
So when you're able to start your application and you can see like what I'm seeing right here, that
small application, you can write down any name and any age.
And if you simply hit info and you can see Hello world, then you are good to go and you can continue
over the next lectures to follow along and code along with me.
So this is where we are starting and this is where we will start talking about data binding, including
well, multiple ways of data binding.