Hello friends ! In this article, we will start learning a new programming technology, which is WPF application programming technology.
You are viewing: What is WPF?
First, we need to understand what WPF is? And what advantages does it have compared to other programming languages.
1, What does WPF mean?
WPF stands for the first 3 letters of “Windows Presentation Foundation” It is a platform that allows programmers to create applications on the platform .NET framework used on the Windows operating system.
WPF (Windows Presentation Foundation) technology is the next generation of WinForm used to program Windows applications developed on .NET 3.5 and later platforms.
WPF is Microsoft’s new, modern programming platform, most of Microsoft’s Desktop applications are written on WPF.
2, Objectives of WPF . technology
WPF was built with three basic goals in mind:
Provides a unified platform for building user interfaces;Allows programmers and interface designers to work together easily;Provides a common technology for building user interfaces across both Windows and Web browser.
Before WPF was born, creating user interfaces according to the requirements described in the above example required the use of many different technologies. To create forms, controls, and other classic features of a Windows graphical interface, often programmers will choose Windows Forms, part of the .NET Framework. If you need to display text, Windows Forms has some features that support text directly, or Adobe’s PDF can be used to display fixed-format text.
For two-dimensional images and graphics, the programmer will use GDI+, a separate programming model accessible through Windows Forms. To display video or play audio, the programmer must use Windows Media Player, and for 3-D graphics, he must use Direct3D, another standard Windows component. In short, the process of developing custom user interfaces becomes complex, requiring programmers with too many technical skills.
See also: What is Curing – Food Ingredients
WPF is a unified solution to solve all of the above technology problems, in other words, WPF provides many interface programming features in a single technology. This makes the user interface creation process significantly easier.
3, Some outstanding features of WPF
WPF makes programming simpler from interface design, data processing (using Linq in combination with Binding mechanism) making programming easier and more powerful than WinForm.
Together with the .NET 4.5 platform that supports Web API (before, .NET 3.5 used WCF, or Web Service for .NET before that), making it easy to build cloud computing applications.
The following table lists the advantages of WPF programming technology compared to some other programming languages:
However, the introduction of WPF does not mean that all of the above technologies have been replaced. Windows Forms is still valid, even in WPF some new applications will still use Windows Forms. Windows Media Player still serves as a standalone tool for playing music and video presentations. PDF for text continues to be used. Direct3D remains an important technology in games and other types of applications (In fact, WPF itself relies on Direct3D to do all the graphical representation).
Creating a modern user interface is not just about merging different available technologies. It also shows in taking advantage of modern graphics cards. To release the limitations of bitmap graphics, WPF is based entirely on vector graphics, allowing the image to automatically resize to fit the size and resolution of the screen on which it is displayed.
By consolidating all the technologies needed to create a user interface into a single platform, WPF greatly simplifies the work of front end developers. By requiring developers to learn a single development environment, WPF contributes to reducing the cost of building and maintaining applications. And by allowing the integration of a variety of ways to represent information on the user interface, WPF contributes to improving the quality, and therefore the value of work, of the way users interact with applications on Windows. .
See also: What is Carcinogen – Meaning of Carcinogenicity in Vietnamese
Above, csharpcanbang briefly introduces WPF technology, in the next articles, csharpcanban will guide you in detail, specifically programming on WPF technology, please visit the website regularly to monitor.