Sample code related to data binding and collections.
An article that shows how to bind to generic methods.
Shows how to create a hierarchical result set by using LINQ's group by clause and how to consume it in WPF data binding.
An introduction to data binding with WPF.
Gives some tips on working with bindings for enumeration values.
An article on how to simplify the WPF validation process.
A walkthrough on how to hook up validation in your data objects using the IDataErrorInfo interface and then working with Validation ErrorTemplates to display the validation error messages and cues to the user.
How to perform two-way data binding with the XmlDataProvider within the Windows Presentation Foundation.
Dr. WPF talks about how to use classes that inherit Freezable to enable the use of ElementName and DataContext in Bindings.
A beginner example of binding WPF to a database using LINQ-SQL.
Demonstrates using the HierarchicalDataTemplate with data drawn from a business object to dynamically populate a WPF Menu control.
Shows several techniques used to debug WPF bindings, including the new debugging improvements implemented in the latest .NET 3.5 release.
Discusses the basics of how to bind to XLinq directly from XAML.
Shows how to bind controls on a ToolTip to data available on the ToolTip's PlacementTarget.
Shows how to perform formatting in data binding expressions for dates and numbers.
A simple value converter that may be applied to data bindings to insert a breakpoint in their execution.
Shows how to use data binding and styles to show data coming from a MS-SQL database using the new object-relational model introduced in Visual Studio 2008, LINQ to SQL, allowing grouping, sorting and filtering of data with almost no code.
Walks through using Blend to databind an RSS feed.
An implementation of a lambda value converter for use in data binding.
Shows an example of using the new DataErrorValidationRule feature found in .NET 3.5.
Shows how to position a collection of elements based on data bindings.
Shows how to properly data bind to the current item of a selector.
Shows how to do a data binding to an attached property.
Shows how to use a HeirarchicalDataTemplates to properly bind menu items.
Shows how to list all of the bindings that are currently set on a DependencyObject.
Shows how in .NET 3.5, the data binding engine adds the support for business-layer validation by supporting IDataErrorInfo.
Demonstrates how to bind an ItemsControl to the files in a directory.
Shows some use of concise data binding syntax for working with items in a collection.
Examines the virtues of creating a base class which implements the INotifyPropertyChanged interface.
Covers how to use value converters for two-way data bindings.
Shows how to use a value converter to prevent a data binding from updating more than once in a certain timeframe.
An ObservableCollection implementation that supports cross-thread operations.
Shows how to create a subclass of DataSourceProvider which loads the text in a resource file, so that you may bind to it.
Shows how to bind a ListBox, elements in a DataTemplate, and an Image to some XML data.
Shows how to enable a button based on the index of the currently selected item in a ListBox.
A samples that lets you build a waveform from a harmonic series.
Shows how to ensure that the IsSynchronizedWithCurrentItem property works as you would expect.
Demonstrates how to chain together value converters used in WPF data binding.
Shows how you can bind to web service results the same way you bind to any other type of object.
Shows how to replace the default collection used for a Panel to provide better interaction with its children.
Shows how to create an observable collection for UIElements.
Shows how to debug binding problems at run-time.
A list of questions people often have when first learning about WPF data binding.
Shows how to use an ObjectDataProvider to allow data binding to an enumeration.
Provides yet another way to bind to polygon points, but without the drawbacks mentioned in Beatriz Costa's methods.
Shows how to implement multi-threaded data binding.
Shows how to implement multi-threaded data binding.
Provides a good overview of Binding options.
Shows how to use a ScaleTransform to allow the user to scale a region of a form using a slider control in XAML.
Shows how to create small "island" of XML data in the UI, and bind some text properties to parts of the XML document.
Shows how to implement a custom ValueConverter for formatting data.
Shows how to create a data binding in code.
Shows how to group items and sort those groups.
Shows how to create that hierarachy from a flat list of data items, using the grouping feature of data binding.
Shows how to group items based on their type.
Explains the differences between adding a source object directly to resources and using an ObjectDataProvider.
Shows how to write your own sorting logic that enables full control over the order of items in a view.
Sometimes it takes a while to retrieve the source data of a Binding. This post explains how to show the status of the Binding.
Explains how RelativeSource FindAncestor works and how you can use it to change the way a data item is displayed when the user clicks on it.
Shows how you can control whether your binding is synchronous or asynchronous.
Shows how you can bind a ComboBox to all the possible values of an enumeration, using only XAML.
Shows how you can use a DataTrigger to change the way data items are displayed based on their properties.
Shows two ways of using the filter feature of data binding.
Explain how you can apply more than one filter to a data bound view of a collection.
Shows how you can use four sliders (alpha, red, green, blue) to control the background color of a rectangle using data binding.
Demonstrates a third better solution for data binding the Points property of a Polygon to a source collection.
Shows a better alternate solution to data bind a Polygon's Points to a collection.
Demonstrates one solution for data binding the Points property of a Polygon to a source collection.
Explains various binding modes and up to update an explicit binding.
Describes how to update the UI when a ContentPresenter is data bound directly to a business object.
Describes how to use BindsDirectlyToSource when working with an ObjectDataProvider.
Demonstrates the fundamentals of binding a WPF TreeView to a DataSet with two related DataTables. The technique presented herein could easily be extended to fit more sophisticated requirements, such as binding to more than two tables.