WPF Reflections:


March 9, 2008  6:53 AM

Multi value converter in databinding

Posted by: MarkWPF
C, Databinding, WPF, XAML

Here's a nifty little trick that I recently discovered. When you need to calculate the result of two properties and display it, you can do it via a Converter class. You may want to do it, like me, if you couldn't update the business objects, or didn't want to. How do you do it? Your...

March 6, 2008  2:45 PM

Explicit control of how the source is updated

Posted by: MarkWPF
Databinding, WPF, XAML

In a previous post, I described how you can get a binding to update in real time - i.e. as you type. Sometimes however, you want to control the updating more closely, i.e. in code. For example, you may want to do the update only when a timer has ticked. There is a little used argument for...

February 24, 2008  10:11 PM

Databinding with Linq with automatic updates

Posted by: MarkWPF
C, Databinding, SQL, WPF

How do you databind to an EntitySet retreived from a Linq query, via Linq to Sql or Linq to Entities for example? Well it is very easy to actually bind to it, you simply connect it up using normal Xaml syntax. But what if you want to have updates automatically relected in the UI? That's...

February 17, 2008  10:54 AM

Combobox – reference not being set

Posted by: MarkWPF
C, Databinding, WPF

I've come across this strange little quoible. It's possibly just just the way I've been trying to use it, but it still seems odd to me If you have a ComboBox which you are databinding to using an object, like: <ComboBox SelectedItem="{Binding Path=Market}" /> Where Market is a...

November 12, 2007  3:05 PM

ListBox – the forgotten control

Posted by: MarkWPF
C, Databinding, WPF

How did that happen? I personally think it happened because when we were all looking at WPF to begin with (in CTP days), it was very obvious that there was no Grid. Then, because of that people noticed that the ListView control had the option to specify a grid version as one of it's views. That...

October 4, 2007  1:11 PM

Change notification

Posted by: MarkWPF
Databinding, WPF

Change notification in WPF is the mechanism by which you proprogate changes to your objects to whomever is listening for those changes.
One typical usage is in a data binding scenario, where the recipient is listening for changes to the objects being bound to in order to update the user...

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: