Data Binding and Graphics in WPF

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).

Graphics
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.

Improved precision.
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.

Hardware acceleration.
The WPF graphics system takes advantage of graphics hardware to minimize CPU usage.

2-D Shapes
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.

Also, you can check out my previous posts on:

You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply