Здравствуйте. Есть ComboBox.
<ComboBox IsEditable="True" ItemsSource="{Binding Agents}">
<ComboBox.ItemTemplate>
<DataTemplate>
<WrapPanel Orientation="Vertical">
<TextBlock Text="ИНН:" Foreground="Red"/>
<TextBlock Text="{Binding INN}"/>
<TextBlock Text="КПП:" Foreground="Red"/>
<TextBlock Text="{Binding KPP}"/>
<TextBlock Text="Название:" Foreground="Red"/>
<TextBlock Text="{Binding ContragentsName}"/>
<TextBlock Text="Адрес:" Foreground="Red"/>
<TextBlock Text="{Binding Address}"/>
</WrapPanel>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
При выборе из раскрывающего списка нужно, чтобы в ComboBox.Text было название организации(ContragentsName). Как это сделать? Заранее спасибо за помощь!
SelectedItem="{ContragentsName}"
?