This is your first visit inside The Matrix. Welcome!

The Matrix has you…

This place will take you into the mirage of learning C# programming language, without any previous coding experience being required

Follow the White Rabbit…█

Wednesday, September 20, 2017 16:34


Back in the day, in the golden days of prehistoric programming (~’80’s), programmers were writing programs that would only display text. Graphics were rare and hideous, and the majority of computer programs were as basics as it gets. Here is a screenshot of Lotus 123, which was a spreadsheet program used for financial jobs:

Up to this point, all the lessons I have taught you were exemplified using the same command line interface (CLI). It is now time to start learning about graphical user interfaces (GUI) and the way we interact with graphical programs. Visual C# offers two alternatives for coding graphical programs: Windows Forms (WinForm) and Windows Presentation Foundation (WPF).

WinForms is a very old technology that is not currently supported or updated by Microsoft anymore, and it is present only because there are still tons of applications developed using it, that require maintenance, debugging, etc. The good side of the WinForms is that they are rather easy to use. The downside is that they are old, discontinued and don’t offer as many possibilities for a rich user interface.

WPF is a powerful tool for creating powerful applications, with the ability to create highly customizable user interfaces. It is based on DirectX and it employs XAML – an XML-like markup language for defining, customizing and fine-tuning the user interfaces. There are a lot of advantages to WPF compared to WinForms, but they are not the subject of this lesson. The main disadvantage of WPF and XAML is that there is quite a steep learning curve if you want to master them as a beginner, or a user coming from WinForms development. The good news is that if you are not a graphician and you don’t really care about very sophisticated user interfaces, everything will be rather easy.

Both WPF and WinForms are event driven programming technologies. As we will see in later lessons of this chapter, GUI’s are composed of controls which have properties, methods and events. We will go through the process of learning the basic knowledge about the core WPF controls, designing our first GUI and implementing it in our first GUI program.




Tags: , , , ,

Leave a Reply