# Learning WPF: Creating Projects

I have just begun my journey using WPF with C# in Visual Studio code. This is my first venture into WPF and I aim to document all of my learnings in a blog series. I have previously been using basic C# and outputting to a console using console applications.

## What is WPF?

WPF or Windows Presentation Foundation is a type of framework that will create a desktop client application. From what I have gathered so far, it appears to be a more visual method of creating code. The user interface (UI) of this type of application is written using the XAML language which I would compare to HTML. The logic of the application is written in the C# programming language which again is similiar to JavaScript..

## Setting up a new project in Visual Studio…

I started by creating a new template using visual studio, the template I used for this was WPF App (.NET Framework) with C#.

Step 1. Choose the template for your project, in this case, it will be WPF App (.Net Framework) C#. See the image below for the template to use.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1675189184005/80f9e80c-1e55-4657-97bd-29899aab96ec.jpeg align="center")

Step 2. Setting up your new project, by naming the project and saving it to a location. See the image below:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1675189134134/16d0df6f-c9d2-423b-b70f-31e230bb6b42.png align="center")

### What you will see...

When you have your project created you will have two types of files available. The first is a XAML file, which is like the HTML of your file, or design.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1675189149924/5eebf908-7290-450d-bd78-0ac28239736a.png align="center")

You will also find a C# file either already open as a tab at the top, or you can look for this in the solution explorer, in the dropdown of the `MainWindows.xaml` file.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1675189163636/f9ff2b96-c0ac-4475-93f9-fc1fa17a2014.png align="center")

This is how you create a project using WPF in C#, I will follow up with my next learnings of using creating applications and learning how to use the tools in the program.

### What I learnt...

Today I learnt the basics of WPF, what WPF is and how to set up a WPF program. Once I had set up the program it was clear to me that WPF is both C# based and something very similar to HTML. In my head, it is a more visual way to code and the next step in my learning journey.
