Click here to Skip to main content
15,886,110 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF Combobox databinding Pin
ABitSmart5-Mar-09 5:23
ABitSmart5-Mar-09 5:23 
GeneralRe: WPF Combobox databinding Pin
babongita5-Mar-09 5:40
babongita5-Mar-09 5:40 
GeneralRe: WPF Combobox databinding Pin
ABitSmart5-Mar-09 5:57
ABitSmart5-Mar-09 5:57 
GeneralRe: WPF Combobox databinding Pin
babongita5-Mar-09 6:11
babongita5-Mar-09 6:11 
GeneralRe: WPF Combobox databinding Pin
ABitSmart5-Mar-09 16:47
ABitSmart5-Mar-09 16:47 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 2:26
babongita6-Mar-09 2:26 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 3:15
ABitSmart6-Mar-09 3:15 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 3:32
babongita6-Mar-09 3:32 
First of all you are correct they are bound to different properties of the Parameter object.

My question is though, that I am binding the ComboBox to a Collection of Classes, and the Parameter object as a property which is a the same class, so I would think that the SelectedValue should be able to bind directly to that Value, since they are of the same type. It is just instead of it being a string object, is of another type. I tried using:

SelectedValue="{Binding SelectedParameter.Name.ParameterDisplayName, Mode=TwoWay}"

but then the actual property doesn't get set correctly.

How can I set that combobox to be the correct item then?
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 4:55
ABitSmart6-Mar-09 4:55 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 5:08
babongita6-Mar-09 5:08 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 5:10
babongita6-Mar-09 5:10 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 5:24
ABitSmart6-Mar-09 5:24 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 5:29
babongita6-Mar-09 5:29 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 5:59
ABitSmart6-Mar-09 5:59 
GeneralRe: WPF Combobox databinding [modified] Pin
babongita6-Mar-09 6:38
babongita6-Mar-09 6:38 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 6:41
ABitSmart6-Mar-09 6:41 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 6:49
babongita6-Mar-09 6:49 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 6:56
ABitSmart6-Mar-09 6:56 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 7:02
babongita6-Mar-09 7:02 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 9:03
babongita6-Mar-09 9:03 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 17:47
ABitSmart6-Mar-09 17:47 
GeneralRe: WPF Combobox databinding Pin
ABitSmart6-Mar-09 3:05
ABitSmart6-Mar-09 3:05 
GeneralRe: WPF Combobox databinding Pin
babongita6-Mar-09 3:18
babongita6-Mar-09 3:18 
AnswerRe: WPF Combobox databinding Pin
Member 40355135-Mar-09 5:03
Member 40355135-Mar-09 5:03 
GeneralRe: WPF Combobox databinding Pin
ABitSmart5-Mar-09 5:14
ABitSmart5-Mar-09 5:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.