Scott Logic Ltd

Archive For "binding" Tag

Everything you wanted to know about databinding in WPF, Silverlight and WP7 (Part One)

Colin Eberhardt, April 5th, 2012

OK, so the title is a little ambitious, but there is nothing wrong with setting yourself lofty aims! Because of the depth of this topic I have decided to split this tutorial up into a series of blog posts, each of which explore a different aspect of the binding framework. I don’t usually write tutorial [...]

Read More


A Simple Pattern for Creating Re-useable UserControls in WPF / Silverlight

Colin Eberhardt, February 6th, 2012

This blog post provides step-by-step instructions for creating a user control, which exposes bindable properties, in WPF and Silverlight. The post covers dependency properties, and how to manage DataContext inheritance. When building user interfaces you will often find yourself repeating the same UI patterns across your application. After all, users like to be presented with [...]

Read More


Using a Grid as the Panel for an ItemsControl

Colin Eberhardt, November 15th, 2010

In this blog post I look at how to use a Grid as the ItemsPanel for an ItemsControl, solving a few of the issues that crop up along the way. The Grid is probably the most useful of Silverlight and WPF’s panels (panels are elements which provide a mec…

Read More


Silverlight MultiBinding updated, adding support for ElementName and TwoWay binding

Colin Eberhardt, August 12th, 2010

This blog post describes an update to the Silverlight 4 MultiBinding technique I blogged about a couple of months ago to add support for ElementName binding and TwoWay binding. A few months ago I posted an update to my MultiBinding solution for Silverl…

Read More


Silverlight MultiBinding solution for Silverlight 4

Colin Eberhardt, May 10th, 2010

In this post I describe an update to the Silverlight MultiBinding solution I presented last year. This update includes support for Silverlight 4, attached properties and multiple bindings on a single object. UPDATE: I have updated this code to include …

Read More


Binding a Silverlight 3 DataGrid to dynamic data via IDictionary (Updated)

Colin Eberhardt, March 26th, 2010

In this post I demonstrate a method for binding a Silverlight 3 DataGrid to dynamic data, i.e. data which does not have properties that are known at design time. This technique results in a bound grid which is sortable and editable. This blog post is a…

Read More


The mini-ViewModel pattern

Colin Eberhardt, August 7th, 2009

The construction of a ViewModel is often seen as the standard technique for solving binding problems within WPF and Silverlight. However, the addition of a ViewModel adds complexity to your code. This post describes an alternative method where a mini-V…

Read More


Silverlight MultiBindings, How to attached multiple bindings to a single property.

Colin Eberhardt, June 25th, 2009

This blog posts describes a technique for associating multiple bindings with a single dependency property within Silverlight applications. WPF already has this functionality in the form of MultiBindings, the code in this post emulates this function. UP…

Read More


Exposing Bindings as Properties of a Control

Colin Eberhardt, June 19th, 2009

I must admit that the title of this post is not entirely clear, however I couldn’t find a way to sum up the content in one short sentence, so we’ll dive straight into an example. Let’s say for example you have developed a funky little…

Read More


Dependency Property Performance and Lissajous Figures

Colin Eberhardt, June 2nd, 2009

A few night ago I was working on a Siverlight control which renders some quite complex Paths, the geometry of which is determined from a number of dependency properties. In order to gain UI coolness points I wanted to animate the dependency properties …

Read More

© 2012 Scott Logic Ltd. All Rights Reserved.