WPF Reflections:

January, 2008

January 31, 2008  1:03 PM

Combobox – using simple properties

Mark Shurmer Profile: MarkWPF

To follow on from my previous post about Comboboxes (see binding combo boxes to objects), how do you bind to a simple int representation of a foreign key? Lets say you have...

January 29, 2008  4:17 PM

Combobox – using objects

Mark Shurmer Profile: MarkWPF

I have seen a number of people getting confused about how to set up the various combobox properties for data binding. Lets say you have a Person object, with a member called Employee which is a reference to an Employee object When you want to bind to an Person object with an object reference...

January 24, 2008  10:01 AM

Hierarchial data template

Mark Shurmer Profile: MarkWPF

Although you can do recursion quite simply with DataTemplates (see recursion example), you may want to use a Hierarchical Data Template instead. You may want to do...

January 24, 2008  9:43 AM

Recursive data template

Mark Shurmer Profile: MarkWPF

Yes, believe it or not, it is possible to have a recursive data template. I was recently writing a ListBox that showed a directory, but I wanted the ListBox to show nested ListBoxes for subdirectories. It turned out to be very easy with WPF: <DataTemplate DataType="{x:Type...

January 16, 2008  11:59 PM

Popup box

Mark Shurmer Profile: MarkWPF

One thing that I have noticed, out there in the real world, is that people new to WPF haven't noticed the (slightly) unsung hero Popup. I have actually seen people spending man weeks recreating a floating window as per the popup control in WPF. So what is it? Well it is the ancestor class for...

January 10, 2008  2:38 PM

ListView – finding the non selected item

Mark Shurmer Profile: MarkWPF

Eh? What I mean by the title is that sometimes when you are using a ListView, you want to find out the row that was used rather than the selected row. The most likely scenario for this is when you have a button (or similar) as a column in the ListView. You want to be able to respond to the...

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: