Here we will discuss about the Data Binding and Graphics in WPF.
For WPF applications, the work of storing and accessing data is already provided for by technologies such as Microsoft SQL Server and ADO.NET. After the data is accessed and loaded into an application’s managed objects,work for WPF applications begins. Essentially, this involves two things:
1. Copying the data from the managed objects into controls, where the data can be displayed and edited.
2. Ensuring that changes made to data by using controls are copied back to the managed objects.
To simplify application development, WPF provides a data binding engine to automatically perform these steps.
The core unit of the data binding engine is the Binding class, whose job is to bind a control (the binding target) to a data object (the binding source).
WPF introduces an extensive, scalable, and flexible set of graphics features that have the following benefits:
Resolution-independent and device-independent graphics.
The basic unit of measurement in the WPF graphics system is the device independent pixel, which is 1/96th of an inch, regardless of actual screen resolution.Each device-independent pixel automatically scales to match the dots-per-inch (dpi) setting of the system it renders on.
The WPF coordinate system is measured with double-precision floating-point numbers rather than single-precision. Transformations and opacity values are also expressed as double-precision.
Advanced graphics and animation support.
WPF simplifies graphics programming by managing animation scenes for you; there is no need to worry about scene processing, rendering loops, and bilinear interpolation. Additionally, WPF provides hit-testing support and full alpha-compositing support.
The WPF graphics system takes advantage of graphics hardware to minimize CPU usage.
WPF provides a library of common vector-drawn 2-D shapes, such as the rectangles and ellipses that are shown in the following illus.
An interesting capability of shapes is that they are not just for display; shapes implement many of the features that you expect from controls, including keyboard and mouse input.
You May Also like the Following SharePoint Tutorials: