Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

ComboBox

$
0
0

Hi,

I have a combobox that has the ItemsSource bound to an observablecollection of Priority objects. Priority objects have and ID and a Description.

My combobox is in a DataTemplate for a listBoxItem that is bound to another collection of objects. Filter objects, which have a FilterPriorityID property

I set the combobox.DisplayMemberPath="Description" which seems fine.

I set the SelectedValuePath="{Binding FilterPriorityID}" expecting the combobox to auto select the correct Priority using the FilterPriorityID. but this is not the case.

Seems i am missing something, coming from Winforms.

Gary


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>