Scott Logic Ltd

Archive For "templates" Tag

Templates, or Why I love WPF (and Silverlight Too!)

Colin Eberhardt, September 10th, 2010

This post compares the implementation of a simple ListBox layout with Windows Forms and Windows Presentation Foundation. The use of Templates within WPF are a clear winner over the WinForms ‘owner draw’ route. Application user interfaces ar…

Read More


Linq to Visual Tree

Colin Eberhardt, March 4th, 2010

This blog post demonstrates a Linq API which can be used to query the WPF / Silverlight Visual Tree. You can find a few other Linq to Visual Tree techniques on other blogs, but what makes this one unique is that it retains, and allows queries that make…

Read More


Styling hard-to-reach elements in control templates with attached behaviours

Colin Eberhardt, February 10th, 2009

OK, the title of this blog post is not very snappy, but it is not an easy problem to describe in a few short words. Here’s the rub, the WPF DataGrid has a select-all button located in the top-left corner, just like Excel and many other grid contr…

Read More

© 2012 Scott Logic Ltd. All Rights Reserved.