ComboBox binding

ComboBox binding

Old forum URL:

Russ posted on Wednesday, September 29, 2010

I have a Business Object that has a ReadOnlyList propertycalled “Lots”. I have bound the WPF form to the Business Object. I would like to bind a ComboBox to the ReadOnlyList “Lots” property of the Business Object.


<ComboBox x:Name="LotFKComboBox"

          ItemsSource="{Binding Lots}"



          SelectedValue="{Binding LotFK/>


The binding to the property appears to work because the ComboBox dropdown is the right height however the it only displays blank values!


Any suggestions why this isn’t working?




Russ replied on Wednesday, September 29, 2010

I found it!  The property Setter was using LoadProperty instead of SetProperty so the changed event was never firing to tell the data binding to update the UI.

Copyright (c) Marimer LLC