Ok, Ive searched the heck out of the Interwebs and can't seem to find this right. I have a ComboBox that is bound to a CollectionViewSource of EntityFramework entities. The display is a template that shows the first/last name. The problem is, when an item is selected, the Display of the combobox == the object.ToString() (i.e. MyCompany.Data.Professional) instead of something useful.
I'm sure I am missing a property here. The ri is the UserControl, and the SelectedPhysician is a DependencyProperty of the
<ComboBox Grid.Column="1" Grid.Row="4" x:Name="cmbReferringPhys"
IsEditable="{Binding IsReadOnly}"
ItemsSource="{Binding Source={StaticResource ProfessionalLookup}}"
SelectedItem="{Binding ElementName=ri, Path=SelectedPhysian, Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}"
HorizontalAlignment="Left" VerticalAlignment="Top" Height="19.277" Width="300"
IsSynchronizedWithCurrentItem="True"
SelectionChanged="ReferringPhy_SelectionChanged" TabIndex="4">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="120" />
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding FirstName}" Grid.Column="0" Margin="4,0" />
<TextBlock Text="{Binding LastName}" Grid.Column="1" Margin="4,0"/>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>