What is WPF?
WPF is a framework for building Windows applications that allow users lớn develop rich user interfaces having 3D animations and rich colors with less code complexity. It is a vector-based rendering engine that uses hardware acceleration of modern graphics cards, which makes the Ul faster & highly scalable. WPF stands for Windows Presentation Foundation.
Bạn đang xem: Wpf c# là gì
WPF can be considered as an evolution over WinForms. It produces easy khổng lồ operate graphical display system for Windows. It offers easy separation between UI và business xúc tích. WPF applications can be deployed in your system as a standalone desktop program or hosted as an embedded object in a website. In this C# WPF tutorial for beginners, you will learn WPF basics like:
Why WPF?There are many reasons for using WPF platsize some prominent ones are-
An ideal platform to lớn use if you require khổng lồ giảm giá with various media types WPF allows you to create a skinned user interface. It also helps you when you need khổng lồ load portion of the UI or want to lớn bind XML data Resolution independence, so application developed using WMF can be run on mobile devices or a 20-inch monitor WPF builds on DirectX instead of WinAPI. It offers the client computer"s graphics system. Therefore, offering greater graphic rendering power Supports a flow document Mã Sản Phẩm which enables "desktop publishing" quality of the layout Appearance & behavior are loosely coupled. This allows designers and developers lớn work on two separate models In WMF framework you can graphically thiết kế tools on simple XML documents instead of parsing code Allows you to lớn use hardware acceleration for drawing the GUI, for better performance
History of WPFWindows 1.0 was the first GUI environment from Microsoft. It is working as a layer on top of DOS, relying on the GDI và USER systems for graphic và user interface. DirectX was introduced in the year 1995, as a high-performance graphics system. It was aimed at games & other graphics related environments. Over the years there are many versions released with Directx9 that provides a library to lớn use with mange.Net code.
|3.0||2006||3.0||N/A||Initial Release. However, WPF development can be done with VS 2005.|
|3.5||2007||3.5||VS 2008||Modification & improvements in: Application mã sản phẩm, binding, controls, documents, annotations, and 3-D Ul elements.|
|3.5 SP1||2008||3.5 SP1||N/A||Native splash screen tư vấn. New website browser control, DirectX pixel shader support.|
|4.0||2010||4.0||VS 2010||New controls: Calendar. DataGrid, DatePicker. Multi-Touch and Manipulation|
|4.5||2012||4.5||VS 2012||Faster cài đặt time and improved performance for Bitmap effects. New controls: Calendar. DataGrid, DatePicker. Multi-cảm biến và Manipulation|
|4.5.1||2013||4.5.1||VS 2013||New Ribbon control New INotifyDataErrorlnfo interface|
|4.5.2||2014||4.5.2||NA||No Major Change No Major Change|
|4.6||2015||4.6||VS 2015||Transparent child window tư vấn HDPI and cảm ứng improvements|
Features of WPFFeatures of WPF Documents và Printing Security, Accessibility & Localization Offers Interoperability with Windows Forms controls Direct3D is used in graphical applications where performance is important Uses the Clip thẻ hardware for rendering Vector-based graphics allows you to lớn scale your application without loss of quality WPF supports floating-point logical px system & 32-bit ARGB color Redefine Styles and Control Templates Building international fonts from composite fonts WPF text rendering helps you to takes advantage of ClearType technology Allows you to use the caching technique of pre-rendered text in the video clip memory Resource-based Approach for every control Presentation timers are initialized & managed by WPF The relationship between Clip and animation is also supported In WPF a style is a phối of properties which should be applied lớn nội dung used for visual rendering Templates in WPF helps you to lớn change the Ul of your document Commands are more abstract và loosely- coupled version of events WPF tư vấn for commands reduces the amount of code we need khổng lồ write Next in this WPF C# tutorial, we will learn about WPF core types and Infrastructure.
WPF Core Types & InfrastructuresClasses in WPF are divided inlớn four different types: UIElement FrameworkElement ContentElement FrameworkContentElementThese classes, known as base element classes. It provides the foundation for a mã sản phẩm of composing user interfaces. WPF user interfaces are composed of elements which are assembled in a tree hierarchy. It is called the element tree. The element tree is an intuitive way to layout user interface. It is a structure which allows you khổng lồ get the feature of powerful UI services.
Xem thêm: Cách Làm Thịt Kho Nước Cốt Dừa Nam Bộ Ngon Đậm Đà, Cách Làm Thịt Heo Kho Nước Cốt Dừa
Xem thêm: Danh Ca Mù Andrea Bocelli Là Ai, Hôn Nhân Của Danh Ca Andrea Bocelli