I have a Dictionary<string, FieldDefinition> dependency property that when I bind it to a WPF list box I want it to just print the string (not the FieldDefinition).
Is there a way to do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I could be wrong, here, but I think you are looking for the
Keysproperty on the dictionary; this will return a collection ofTKeyvalues (in your case, the ‘string’ part of your dictionary, not the FieldDefinition part, which incidentally would be available via theValuesProperty)