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}"
DisplayMemberPath="Code"
SelectedValuePath="LotPK"
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?
Thanks
Russ.
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