I want to format the string binding as Amount is X , where X is the property associated with the label.
I have seen many examples, but the following does not work:
<Label Content="{Binding Path=MaxLevelofInvestment, StringFormat='Amount is {0}'}" />
I also tried these combinations:
StringFormat=Amount is {0} StringFormat='Amount is {}{0}' StringFormat='Amount is \{0\}'
I even tried changing the data type of the binding property to int , string and double . Nothing is working. This is a very common use case, but it does not seem to be supported.
wpf binding wpf-controls wpfdatagrid wpftoolkit
Everything Matters Nov 17 '10 at 16:23 2010-11-17 16:23
source share