A What are the two components of WPF?
WPF consists of two main parts: the engine and the programming framework.
1 engine. The WPF engine is a single run-time library that provides graphical video audio and documentation for forms-based applications. It is important that the WPF vector-based rendering engine enables applications to flexibly utilize high-DPI monitors to support graphics hardware acceleration.
2 frame. The WPF framework provides a large number of solutions for media user interface design and documentation. The design of WPF takes into account extensibility, allowing developers to create their own controls entirely on the basis of the WPF engine, or to create their own controls by re-categorizing existing WPF controls.
two · What is WPF?
The full name of WPF is Windows Presentation Foundation, and Chinese is the foundation for the Windows Presentation layer. is a graphical platform that Microsoft originally launched on the. NET Framework3.5 platform.
three · The similarities and differences between Silverlight and WPF.
They operate in a different way.
1 Silverlight is a browser-based plugin that runs in a browser.
2 WPF can write Web programs or desktop applications that can be compiled directly into an EXE file that runs independently.
The implementation functionality is different.
1 WPF supports triggering animations by binding triggers directly in XAML, and Silverlight can only be done through managed code or JavaScript.
2 WPF directly supports 3D effects and 3D lens transformations, but Silverlight does not support them.
And they have similar places.
1 Silverlight Formerly known as wpf/e, WPF Everywhere is a subset of WPF. So they are very similar in many grammatical implementations.
Four · How do I understand the WPF architecture?
WPF uses a multi-tiered architecture, similar to a three-tier structure, and the top-most part of the managed-code API, which is used to provide a higher-level service for developers writing WPF applications, written in C # managed code. Transformation. NET code to DirectX is implemented by the middle tier Milcore.dll. The middle tier milcore is implemented in unmanaged code because it needs to be tightly integrated with DirectX and is sensitive to performance, which consumes more resources and has a greater impact on performance.
Five · What is the role and implementation syntax of binding in WPF?
A typical binding has four important components: the binding target object (the binding destination objects) Target object property (destination) binding data source (binding source) Path ( Used to indicate the value to be obtained from the data source, which is the property name we typically write.
Six · What is XML extension XAML? What are the advantages?
1 XAML is the abbreviation for Extensible Application Markup language, which is called extensible Application Markup Language, which is a new descriptive language created by Microsoft to build the application user interface.
2 XAML is a derivative of the XML language, and its syntax is exactly the same as the XML language, and its function is to specifically design and implement the program's UI.
3 XAML a big advantage is that because WPF supports Web development, the transformation of web development and desktop development is simple, the changes are short, and the UI is completely separate from the logic, so the logic code is almost untouched.
Seven Explain what a dependency property is, and how does it differ from previous properties? Why would you use it in WPF?
1 Windows Presentation Foundation (WPF) provides a set of services that can be used to extend the functionality of common language runtime (CLR) properties, which are commonly referred to collectively as the WPF property system. Properties supported by the WPF property system are called dependency properties.
2 The difference between it and its previous properties is
(1) A dependency property is a specific type of property. What is special about this property is that its property values are tracked and affected by the private property system in the Windows runtime.
(2) The purpose of a dependency property is to provide a systematic way to calculate the value of a property based on other inputs (other properties, events, and states that occur inside the application while it is running).
(3) A dependency property represents or supports a specific feature of the programming model that defines a Windows runtime app that uses XAML to write the UI and write code using C #, Microsoft Visual Basic, or Visual C + + component extensions (C++/CX).
The general attributes are not so complex.
3 WPF uses it for a number of advantages
(1) Optimization of the storage of properties, the direct reduction of unnecessary memory usage.
(2) There is attribute change notification limit validation, and so on.
(3) can store multiple values, with expression and animation, etc., to create a more flexible way to use.
WPF Foundation Questions and Answers (i)