Learning WPF you need to know the advantages

 

Introduction: Why learn WPF it? With the upgrade at this stage because the hardware technology and customer demand for more and more experience, Chuan conventional GDI and USERS (or GDI +, USERS) can not meet this demand, therefore, WPF technology came into being.

WPF technology advantages:

1, a wide range of integration : Before WPF appear, Windows developers need to if outside normal 2D graphics and controlsthe use of 3D, video, voice, rich technical document view, you have to learn some technical independence, continuity between these technologiesoften there are many inconsistencies, but also in how many cases there is no built-in support for the use of a combination of them. The WPF system byprogramming model and a tight integration covers all these parts, under the tight integration of various media types can be combinedtogether and presented together. You can apply consistent effects on different types of media, a field that you have learned in manymulti-technology can be applied in any other field.

2, regardless of the resolution : vector-based graphical user interface, the higher the resolution, the sharper the graphical display, and not as ordinaryjagged pattern above.

3, hardware acceleration : Although WPF is a new technology, but it is based on Direct3D created. In particular, note that, ineither 2D or 3D graphics or text will be converted to 3D in WPF applications triangle, its materials andhe Direct3D object responsible for rendering by the hardware. This means that the WPF application and, based on different GDI systemscan benefit from hardware acceleration to obtain a smoother image and better performance. WPF is not necessary forhigh-end graphics hardware, it also has its own software rendering pipeline. Therefore, it can not only use the features of the hardware is not yet supported,

Fidelity can print anything on screen, but when faced with inadequate hardware resources (for example, only an older graphics card, or even a piece of high-end graphics card but do not have enough GPU resources, such as lack of memory), can have make

Standby.

4, declarative programming : WPF by introducing the XAML (Extensible Application Markup Language, the Application ExtensibleMarkup Language, pronounced zammel) a declarative programming into a next level. WPF and XAML combination is verysimilar to using HTML to define a user interface, but it has astonishing representation capability. This represents the ability even beyondthe scope of the user interface, WPF XAML can be used as a document format a 3D model representation, and so on.

5, rich creation and customization (Rich composition and customization): WPF controls have never seen the creation of yourability. You can put some animation button in a ComboBox control, or some video clips into amenu! Although these particular custom may sound very scary, but you do not need to write much code (not evento any code), you can use the controls to developers who never thought of a way custom control (not as formerly controlledparts since the painting (owner-draw)) technology. In the same way, WPF makes creating a completely different appearance of "skin" shoulduse the program becomes very simple.

6, easy to deploy : WPF (using Windows Installer or ClickOnce) deploy traditional Windows application orin a Web browser in the host application provides a choice. A new and interesting aspects of WPF is that it's built ClickOnceon providing support for direct integration with Web browser and navigation system. Although the above WPF so many bright spot, but the performance and characteristics of the problem set is incomplete, it is more important deficiencies, although with the development of technology, feature set has been improved, but the performance issue is a problem can not be ignored, but due to the rapid development of hardware technology at this stage, we believe that in the near future, this is no longer a problem. WPF and .NET FrameWork is to follow the user to meet together, in the framework of the original basis of the above, the added components, while increasing components as well as WCF, WF and WCS. It has two main themes: re-design and emphasis on procedural and declarative code that describes a combination for managed code. Although WPF is managed code for terms, however, does have some core things WPF is implemented by unmanaged code, and even offers some low-level unmanaged API to help you write your own graphics CODEC (codec) or bitmap effects.In all the new components of the .NET Framework, XML, and a transparent common XAML declarative and characteristics of the present disclosure outwardly. In WPF, XAML is typically used to represent a user interface. In Windows Workflow Foundation (WF), the program can also be used to represent XAML-related activities workflow. In the Windows Communication Foundation (WCF), the program will use the XML configuration file the framework agreement and the application protocol separated, you can also use the XML messages and agreements [Simple Object Access Protocol (SimpleObject Access Protocol, SOAP) and Web Services Description Language (WebServices Description Language, WSDL)] to communicate with other programs. All this is to allow programmers and other experts in the field of working together more user friendly. XAML and XML will become all common languages ​​(most likely by development tools and design tools in specific areas) used by the parties. For WPF, "experts" are graphic designers, they are able to create flexible user interface design tool, programmers can write code independently. But the programmer / designer has been able to collaborate using WPF, XAML is not just because there is a common language, but also because people have been trying to make WPF API functions provided can be accessed by way of a statement. This gives enormous expressive design tools, but do not bother to generate procedural code.

Also note that, WPF only in Windows Vista and later versions, 3D object has anti-aliasing features; only in Windows Vista and later versions, non-rectangular or transparent window only supports hardware acceleration. Of course, WPF controls have different default theme to match their host operating system.

In the Windows XP system, run multiple WPF or DirectX applications may make the system come to a halt, which is due to driver problems in Windows Vista and later versions, there is a new driver model to solve the problem of resource contention . It will be virtualized GPU resources and arrangements, when using multiple GPU applications running simultaneously,

It can make your system run more smoothly.

By:http://blog.sina.com.cn/s/blog_6d3615260100vqy1.html

 

 

Guess you like

Origin www.cnblogs.com/Stay627/p/12048304.html