In this article I will discuss how to retrieve the data from a database source and bind to a datagrid in WPF using Linq to SQL. The article is for the beginners who want to learn how to bind the data from database using the Linq To sql (dbml)file as DataContext and ObjectDataProvider in the WPF forms without doing any coding in the code behind file.
WPF
Working with WPF Templates
WPF Templates
What is a template in laymen’s term? A template is a shape or mold which we can apply on a look less or some randomly shaped piece of some object. E.g. suppose we have some randomly shaped clay and we want that clay to attain some shape may be like circle or triangle. This we can achieve by having a pre molded iron shape and pressing hard on that clay by keeping the other properties of clay intact such as hardness. WPF templates help us to achieve the same functionality. The controls in WPF are basically look less or they have some pre-defined shape which we may want to change in some scenario.
LayoutTransform and RenderTransform in WPF
Understanding Tranformation(LayoutTransform and RenderTranformation)
Transformation helps us to map points of a particular shape or element from one coordinate space to another coordinate space. There can be many cases where we want to incorporate some animations in the WPF application. These animations can be incorporated with the help of transformations.
A transformation can be used on an element to
[Read more…] about LayoutTransform and RenderTransform in WPF
Understanding MeasureOverride and ArrangeOverride
MeasureOverride and ArrangeOverride
To build an effective and appealing UI in WPF we should be aware of the layout process which takes places while creating the controls and in turn to understand the layout process we should be aware of the MeasureOverride() and ArrangeOverride() methods of the FrameworkElement class which can in turn help us to create custom panel in WPF.
[Read more…] about Understanding MeasureOverride and ArrangeOverride