TOC

This article is currently in the process of being translated into Lao (~17% done).

About WPF:

What is WPF?

WPF ແມ່ນຫຍໍ້ມາຈາກ Windows Presentation Foundation, ແມ່ນແນວທາງລ່າສຸດຂອງ Microsoft ສຳລັບ GUI framework ທີ່ນຳໃຊ້ຮ່ວມກັບ .NET framework.

ແຕ່ GUI framework ແມ່ນຫຍັງລະ? ຄຳວ່າ GUI ຫຍໍ້ມາຈາກ Graphical User Interface ແລະ ຕອນນີ້ເຈົ້າອາດກຳລັງເບິ່ງມັນຢູ່. Windows ມີ GUI ເພື່ອໃຊ້ໃນການເຮັດວຽກຮ່ວມກັບຄອມພິວເຕີຂອງເຈົ້າ ແລະ ໂປຣແກຣມທ່ອງເວັບ (browser) ຊຶ່ງເປັນໄປໄດ້ວ່າເຈົ້າກຳລັງໃຊ້ມັນອ່ານເອກະສານນີ້ຢູ່ ກໍມີ GUI ທີ່ຊ່ວຍໃຫ້ເຈົ້າທ່ອງເວັບໄດ້.

A GUI framework allows you to create an application with a wide range of GUI elements, like labels, textboxes and other well known elements. Without a GUI framework you would have to draw these elements manually and handle all of the user interaction scenarios like text and mouse input. This is a LOT of work, so instead, most developers will use a GUI framework which will do all the basic work and allow the developers to focus on making great applications.

There are a lot of GUI frameworks out there, but for .NET developers, the most interesting ones are currently WinForms and WPF. WPF is the newest, but Microsoft is still maintaining and supporting WinForms. As you will see in the next chapter, there are quite a few differences between the two frameworks, but their purpose is the same: To make it easy to create applications with a great GUI.

In the next chapter, we will look at the differences between WinForms and WPF.