WPF see the series every day-gossip one of WPF (the structure of WPF)

Source: Internet
Author: User
WPF has been in our life for many years. (It reminds me of this sentence: "I have never been a big brother for many years. " .) I personally think that in the UI In practice, what users need is an easy-to-operate and more elegant interface. These two should be the most basic and important purposes. Developers should use the simplest method to develop as beautiful interfaces as possible, and the efficiency should not be too bad. (Is the requirement too much !) Besides In web development and special applications, few development teams are equipped with independent artists, at least for the time being! Based on your current Understanding, feeling In some of these aspects, WPF does have a great deal of attention.

Objectively speaking, The Vista operating system does bring us unparalleled visual effects. I personally have a deep understanding that in the last 2 Every day For development under Vista, go home and see XP The system is always uncomfortable.

WPF can be considered as Ms.Use existingSome features of the. NET Framework, coupled with dirextx. FromIn the WPF component, we can see that the bottom layer is still some kernel APIs.. (The following two images are from the Internet .)

The red component is the core of WPF. MilcoreIs a sumUnmanaged components for DirectX InteractionCodeIt can bring us more efficient processing, better and dirextxInteraction.All display of WPF is by dirextCompleted.A very important feature in milcore is composition.Engine, which has high requirements on efficiency. Its specific role will be introduced later. SoMilcore gave up some CLRIn exchange for efficiency. The other two red components are built onBased on the CLR, the. NET.

For USER32What is the role of a component?In some application scenarios of WPF, USER32 is required for some compatibility purposes., WhereDWM (desktop window management ). DWMCan write a lot of content, interested friends can readSDK documentation.

In additionBesides the basic structure of WPF Is WPFFor more information, see:

Each yellow block in the figure is a media type. This indicates that WPFIt can process almost all media types: bitmap,3D, audio, video, and text. Using WPFIt integrates the currentGDI/GDI +, d3d/OpenGLAnd multimediaDshow and so on. All things are equivalent objects, regardless of 3DOr2d, or text.

In the structure diagramThe animate block runs through the entire structure, becauseAll the visible content can be animated. This is a very promising feature.In the animation, we can see the composition again.Engine, as mentioned earlierIn the milcore component. During the development process, we have a variety of Interface Element functions, such as video and video. The content displayed in the window can be considered as just an image (or surface ).). The function of this engine is to merge these image and video elements for final submission and display.

How does it feel like a bunch of nonsense! I'm ready. You don't have to worry about tomatoes and eggs!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.