I have a ComboBox bound to an ObservableCollection of decimals. What is the correct way to apply our currency converter to the items?
Edit:
a) I have an existing currency converter that I must use b) .NET 3.0
Do I need to template the items?
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.
Your best bet if you have some code to do the conversion is indeed to run each item through an IValueConverter via a template.
So you just define your CurrencyConverter class such that it implements IValueConverter and calls your code to turn the given amount into a formatted string.