Format string to display sign

RK62

Active member
Joined
Dec 29, 2010
Messages
33
Programming Experience
3-5
I'd like to display a value with a sign (both positive and negative).
How should I define the StringFormat property to do that (in WPF)?

I currently have
VB.NET:
 <TextBlock Text="{Binding myValue, StringFormat={}{0:N2}}" />

but how do I add the sign to it? For example the value 0.69 should be displayed as +0.69.
 
Back
Top