How to bind Dictionary with ComboBox and textbox?

Posted by younevertell on Stack Overflow See other posts from Stack Overflow or by younevertell
Published on 2010-03-29T03:49:40Z Indexed on 2010/03/29 3:53 UTC
Read the original article Hit count: 306

Filed under:
|

I have a Dictionary, where Person is a class, defined below

String role;

public class Person { public string firstname{ get; set; } public string lastname{ get; set; }

public string city{ get; set; } }

my question is how to bind the Dictionary key: String with a ComboBox, menwhile. have the Dictionary value: Person connected with three textboxes. That is, once a key is selected in the ComboBox, the corresponding value, firstname, lastname, city are shown in the three textboxes respectively?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about wpf-binding