How to use ConventionManager.ApplyValueConverter for int to string conversion?

Topics: Conventions
Feb 27, 2013 at 1:57 PM

I have a control in the UI which extends HeaderedItemsControl and requires Header property to be set. I want to show a number on this control, but the Header property takes only a string as value. As I need to make some changes to the number I didn't want to produce some nasty code. I looked for the best way to convert the int to the string and stumbled upon this particular stackoverflow question. Mr. Eisenberg mentioned the ConventionManager.ApplyValueConverter function, but I have no idea where and how to add a int to string conversion. Do I need to change something in the bootstrapper? What's the best way to use this method?